added dev deploy workflow #113

Merged
pombas_n merged 2 commits from dev into master 2026-09-17 10:57:29 +02:00
+35
View File
@@ -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