chore: ci
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user