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:
|
||||
name: Run Tests (DinD)
|
||||
runs-on: ci
|
||||
if: env.GITEA_REF == 'refs/heads/main'
|
||||
if: ${{ startsWith(gitea.ref, 'refs/heads/main') }}
|
||||
|
||||
steps:
|
||||
- name: Setup DinD Environment
|
||||
|
@ -120,7 +120,7 @@ jobs:
|
|||
name: Build and Push Docker Images (DinD)
|
||||
needs: [test]
|
||||
runs-on: ci
|
||||
if: env.GITEA_REF == 'refs/heads/main'
|
||||
if: ${{ startsWith(gitea.ref, 'refs/heads/main') }}
|
||||
|
||||
steps:
|
||||
- name: Set up Docker Buildx in DinD
|
||||
|
@ -183,7 +183,7 @@ jobs:
|
|||
name: Deploy to Production
|
||||
needs: build-and-push
|
||||
runs-on: prod
|
||||
if: env.GITEA_REF == 'refs/heads/main'
|
||||
if: ${{ startsWith(gitea.ref, 'refs/heads/main') }}
|
||||
|
||||
steps:
|
||||
- name: Setup deployment directory
|
||||
|
|
Loading…
Add table
Reference in a new issue