Skip to content

Commit

Permalink
Add a CD step to deploy to dev (#80)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Kennedy <[email protected]>
  • Loading branch information
Jeff Kennedy authored Jul 14, 2021
1 parent ffa312c commit 0933cbb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,26 @@ jobs:
exit 1;
fi
push-to-dev:
machine:
image: ubuntu-1604:201903-01
parameters:
tag:
default: latest
description: Tag of aries-key-guardian to push to dev
type: string
steps:
- checkout
- kube-orb/install
- kube-orb/install-kubeconfig:
kubeconfig: KUBECONFIG_BASE64
- aws-eks/install-aws-iam-authenticator
- helm/install-helm-client:
version: v3.2.4
- run:
name: Deploy to dev cloud
command: helm upgrade --install aries-key-guardian helm-config --set image.tag=<<parameters.tag>>

workflows:
build-test-deploy:
jobs:
Expand Down Expand Up @@ -130,7 +150,21 @@ workflows:
dockerfile: Dockerfile.production
image: kivaprotocol/aries-key-guardian
tag: << pipeline.git.tag >>,latest
- push-to-dev:
context:
- continuous-deployment-dev
requires:
- docker/publish
filters: # only run for semver tagged versions
tags:
only: /^([0-9]+)\.([0-9]+)\.([0-9]+)/
branches:
ignore: /.*/
tag: << pipeline.git.tag >>

orbs:
node: circleci/[email protected]
docker: circleci/[email protected]
kube-orb: circleci/[email protected]
aws-eks: circleci/[email protected]
helm: circleci/[email protected]

0 comments on commit 0933cbb

Please sign in to comment.