Skip to content

Commit 371afe8

Browse files
committed
Update CI/CD
1 parent 6b1194a commit 371afe8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/run-ci-cd.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ jobs:
296296
name: Build Docker Production Images
297297
environment: production
298298
if: |
299-
github.event_name == 'release' &&
300-
github.event.action == 'published'
299+
github.repository == 'OWASP/Nest' &&
300+
github.ref == 'refs/heads/main'
301301
needs:
302302
- code-ql
303303
- run-backend-tests
@@ -359,10 +359,11 @@ jobs:
359359
PRODUCTION_SSH_PRIVATE_KEY_PATH: '~/.ssh/nest_production_private_key'
360360
environment: production
361361
if: |
362-
github.event_name == 'release' &&
363-
github.event.action == 'published'
362+
github.repository == 'OWASP/Nest' &&
363+
github.ref == 'refs/heads/main'
364364
needs:
365365
- build-docker-production-images
366+
- deploy-nest-staging
366367
runs-on: ubuntu-latest
367368
steps:
368369
- name: Check out repository

0 commit comments

Comments
 (0)