We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17a6cfa commit 4917049Copy full SHA for 4917049
.github/workflows/ci.yml
@@ -96,7 +96,8 @@ jobs:
96
docker-build:
97
needs: [build-and-test, build-web]
98
runs-on: ubuntu-latest
99
- if: github.ref == 'refs/heads/main' && github.event_name == 'push'
+ # Only run if on main branch AND secrets are configured
100
+ if: github.ref == 'refs/heads/main' && github.event_name == 'push' && vars.ACR_LOGIN_SERVER != ''
101
102
permissions:
103
contents: read
@@ -164,7 +165,8 @@ jobs:
164
165
deploy:
166
needs: docker-build
167
168
+ # Only run if docker-build succeeded (not skipped)
169
+ if: needs.docker-build.result == 'success'
170
environment: production
171
172
0 commit comments