Files
MistoxCom-Angular/.gitea/workflows/demo.yaml
T
derek fbf73ce1b2
Docker Build and Release Upload / build (push) Successful in 4s
Update .gitea/workflows/demo.yaml
2025-07-03 22:36:21 +00:00

35 lines
970 B
YAML

name: Docker Build and Release Upload
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: build database
run: |
docker build -t mistox-sql ./database
- name: build server
run: |
docker build --build-arg BASE_URL=https://mistox.com -t mistox-website .
- name: create release
run: |
curl -X POST "10.1.1.1:8086/repos/derek/${{ gitea.repository }}/releases" \
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{
"tag_name": "'"+%Y%m%d%H%M"'",
"target": "main",
"title": "Release "'"+%Y%m%d%H%M"'",
"note": "Auto-generated release from workflow",
"draft": false,
"prerelease": false
}'