From d5e5e9d50b75f15b443bee535462ac26079b429f Mon Sep 17 00:00:00 2001 From: pombas_n Date: Thu, 17 Sep 2026 10:43:47 +0200 Subject: [PATCH 1/2] Add .gitea/workflows/dev.yaml --- .gitea/workflows/dev.yaml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/dev.yaml diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml new file mode 100644 index 0000000..580ffeb --- /dev/null +++ b/.gitea/workflows/dev.yaml @@ -0,0 +1,40 @@ +name: Build & Deploy Dev + +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 }}:${{github.run_number}} + + - name: Trigger deployment workflow + run: | + curl -X POST \ + -H "Authorization: token ${{ secrets.REGISTRY_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{ + "ref": "dev", + "inputs": { + "pocketapp_version": "${{ github.run_number }}" + } + }' \ + https://gitea.psi.ch/api/v1/repos/bb_if_produktiv/deployment/actions/workflows/deployDevelopment.yml/dispatches \ No newline at end of file -- 2.54.1 From eb9b2c3bde2d144d3a3f362b7bba61bf383a94be Mon Sep 17 00:00:00 2001 From: pombas_n Date: Thu, 17 Sep 2026 10:56:59 +0200 Subject: [PATCH 2/2] Update .gitea/workflows/dev.yaml --- .gitea/workflows/dev.yaml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index 580ffeb..304dab8 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -1,4 +1,4 @@ -name: Build & Deploy Dev +name: Build & Deploy Development on: push: @@ -24,17 +24,12 @@ jobs: with: context: . push: true - tags: gitea.psi.ch/${{ github.repository }}:${{github.run_number}} + 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", - "inputs": { - "pocketapp_version": "${{ github.run_number }}" - } - }' \ - https://gitea.psi.ch/api/v1/repos/bb_if_produktiv/deployment/actions/workflows/deployDevelopment.yml/dispatches \ No newline at end of file + 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 -- 2.54.1