Skip to content

Commit

Permalink
ci: fix deploy-images conditional (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgrd authored Dec 7, 2023
1 parent 252bdc9 commit 501e6c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,16 @@ jobs:
AUTH_JWTSIGNING_PRIVATE_KEY=${<< parameters.jwt-signing-private-key >>} \
make deploy
- when:
condition: << parameters.shuttle-env >> == "production"
condition:
equal: [ production, << parameters.shuttle-env >>]
steps:
- run:
name: Pull new deployer image on prod
command: |
ssh ec2-user@controller.<< parameters.ssh-host >> "docker pull public.ecr.aws/shuttle/deployer:$TAG"
- when:
condition: << parameters.shuttle-env >> == "staging"
condition:
equal: [ staging, << parameters.shuttle-env >>]
steps:
- run:
name: Pull new deployer image on dev
Expand Down

0 comments on commit 501e6c8

Please sign in to comment.