generated from mac-arrap/sample-os-standard-repo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a CD step to deploy to dev (#80)
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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] |