Update CircleCI configuration for redskyops context
@@ -37,12 +37,16 @@ jobs:
name: Compute checksums
command: sha256sum bin/* | tee bin/checksums.txt
- run:
- name: Docker tag latest
+ name: Docker tag latest release
command: |
+ if [[ -n "${CIRCLE_TAG:-}" ]]; then
docker tag "${IMG}" "${IMG%%:*}:latest"
docker push "${IMG%%:*}:latest"
docker tag "${SETUPTOOLS_IMG}" "${SETUPTOOLS_IMG%%:*}:latest"
docker push "${SETUPTOOLS_IMG%%:*}:latest"
+ else
+ echo "Skipped, not a release build"
+ fi
- store_artifacts:
path: bin/redskyctl-darwin-amd64
destination: redskyctl-darwin-amd64
@@ -57,14 +61,14 @@ workflows:
dev-build:
jobs:
- build:
- context: carbon-relay-dev
+ context: redskyops
filters:
branches:
only: master
release-build:
jobs:
- build:
- context: carbon-relay-oss
+ context: redskyops
filters:
tags:
only: /^v.*/
