chore: ci

This commit is contained in:
2026-05-09 15:44:09 +02:00
parent 80115c057b
commit 0a4953334a
+5 -3
View File
@@ -65,7 +65,9 @@ jobs:
name: Docker Build & Push name: Docker Build & Push
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: >
github.event_name == 'push' &&
(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/pre-prod')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -86,7 +88,7 @@ jobs:
file: docker/backend/Dockerfile file: docker/backend/Dockerfile
target: runtime target: runtime
push: true push: true
tags: xor1234/backend-mln:latest tags: xor1234/backend-mln:${{ github.ref == 'refs/heads/main' && 'latest' || 'pre-prod' }}
- name: Build & push WAF - name: Build & push WAF
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@@ -95,7 +97,7 @@ jobs:
file: docker/backend/Dockerfile file: docker/backend/Dockerfile
target: waf target: waf
push: true push: true
tags: xor1234/backend-mln:waf tags: xor1234/backend-mln:${{ github.ref == 'refs/heads/main' && 'waf' || 'waf-pre-prod' }}
deploy: deploy:
name: SSH Deploy name: SSH Deploy