Skip to content

Commit

Permalink
Add dependency on docker/publish to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ianconsolata committed Oct 2, 2022
1 parent 1f88b20 commit 6977d2a
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- run: helmfile --file .deploy/helmfile.yaml diff

workflows:
production-deploy:
deploy:
jobs:
- docker/publish:
context:
Expand All @@ -58,43 +58,35 @@ workflows:
docker-password: DOCKER_PASSWORD
filters:
branches:
only: main
only:
- main
- staging
- helmfile-apply:
name: apply/production
env: production
name: apply/staging
env: staging
context:
- kube-primary
- docker-org-itme
- docker-user-ian
- mysilio-me-smtp
filters:
branches:
only: main
staging-deploy:
jobs:
- docker/publish:
context:
- docker-org-itme
- docker-user-ian
image: itme/$CIRCLE_PROJECT_REPONAME
tag: $CIRCLE_SHA1
# can't use $ here, need to give it an env var name
docker-username: DOCKER_USER
docker-password: DOCKER_PASSWORD
filters:
branches:
only: staging
requires:
- docker/publish
- helmfile-apply:
name: apply/staging
env: staging
name: apply/production
env: production
context:
- kube-primary
- docker-org-itme
- docker-user-ian
- mysilio-me-smtp
filters:
branches:
only: staging
only: main
requires:
- docker/publish
diff:
jobs:
- helmfile-diff:
Expand Down

0 comments on commit 6977d2a

Please sign in to comment.