diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml new file mode 100644 index 0000000..304dab8 --- /dev/null +++ b/.gitea/workflows/dev.yaml @@ -0,0 +1,35 @@ +name: Build & Deploy Development + +on: + push: + branches: [dev] + workflow_dispatch: + +jobs: + build-dev: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Login + uses: docker/login-action@v3 + with: + registry: gitea.psi.ch + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and push DEV + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: gitea.psi.ch/${{ github.repository }}:dev + + - name: Trigger deployment workflow + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.REGISTRY_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{"ref":"dev"}' \ + https://gitea.psi.ch/api/v1/repos/bb_if_produktiv/deployment/actions/workflows/deployDevelopment.yml/dispatches \ No newline at end of file