Use correct stage run on branch conditional
Some checks failed
CI/CD Pipeline (Fully Isolated DinD) / Run Tests (DinD) (push) Failing after 0s
CI/CD Pipeline (Fully Isolated DinD) / Build and Push Docker Images (DinD) (push) Has been skipped
CI/CD Pipeline (Fully Isolated DinD) / Deploy to Production (push) Has been skipped

This commit is contained in:
continuist 2025-07-05 12:19:09 -04:00
parent 546b0e058c
commit c400f62e81

View file

@ -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