fix(ci): Push each image into its own tag
Using the git sha as the tag
@@ -226,12 +226,13 @@ jobs:
BRANCH=$(git rev-parse --abbrev-ref HEAD | tr '/' '.')
echo sha256sum after build is
sha256sum target/release/influxdb_iox
- docker build -t quay.io/influxdb/fusion:$BRANCH -f docker/Dockerfile.iox .
- docker push quay.io/influxdb/fusion:$BRANCH
- echo "export BRANCH=${BRANCH}" >> $BASH_ENV
+ COMMIT_SHA=$(git rev-parse --short HEAD)
+ docker build -t quay.io/influxdb/fusion:$COMMIT_SHA -f docker/Dockerfile.iox .
+ docker push quay.io/influxdb/fusion:$COMMIT_SHA
+ echo "export COMMIT_SHA=${COMMIT_SHA}" >> $BASH_ENV
- run:
name: Deploy tags
- command: ./.circleci/get-deploy-tags.sh "${BRANCH}"
+ command: ./.circleci/get-deploy-tags.sh "${COMMIT_SHA}"
- cache_save
# Prepare the CI image used for other tasks.
