Use correct stage run on branch conditional
Some checks failed
Some checks failed
This commit is contained in:
parent
546b0e058c
commit
c400f62e81
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ jobs:
|
||||||
test:
|
test:
|
||||||
name: Run Tests (DinD)
|
name: Run Tests (DinD)
|
||||||
runs-on: ci
|
runs-on: ci
|
||||||
if: env.GITEA_REF == 'refs/heads/main'
|
if: ${{ startsWith(gitea.ref, 'refs/heads/main') }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup DinD Environment
|
- name: Setup DinD Environment
|
||||||
|
@ -120,7 +120,7 @@ jobs:
|
||||||
name: Build and Push Docker Images (DinD)
|
name: Build and Push Docker Images (DinD)
|
||||||
needs: [test]
|
needs: [test]
|
||||||
runs-on: ci
|
runs-on: ci
|
||||||
if: env.GITEA_REF == 'refs/heads/main'
|
if: ${{ startsWith(gitea.ref, 'refs/heads/main') }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx in DinD
|
- name: Set up Docker Buildx in DinD
|
||||||
|
@ -183,7 +183,7 @@ jobs:
|
||||||
name: Deploy to Production
|
name: Deploy to Production
|
||||||
needs: build-and-push
|
needs: build-and-push
|
||||||
runs-on: prod
|
runs-on: prod
|
||||||
if: env.GITEA_REF == 'refs/heads/main'
|
if: ${{ startsWith(gitea.ref, 'refs/heads/main') }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup deployment directory
|
- name: Setup deployment directory
|
||||||
|
|
Loading…
Add table
Reference in a new issue