CircleCI: Push master Docker images without revision in tag (#22218)

This commit is contained in:
Arve Knudsen 2020-02-14 17:28:30 +01:00 committed by GitHub
parent 019834ae12
commit d03075b811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -558,20 +558,21 @@ jobs:
name: Publish Docker images
command: |
export DOCKER_CLI_EXPERIMENTAL=enabled
docker tag "grafana/grafana:master-${CIRCLE_SHA1}" "grafana/grafana:master-${CIRCLE_SHA1}-new-pipeline"
docker push "grafana/grafana:master-${CIRCLE_SHA1}-new-pipeline"
docker tag "grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}" "grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}-new-pipeline"
docker push "grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}-new-pipeline"
docker tag "grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}" "grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}-new-pipeline"
docker push "grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}-new-pipeline"
docker tag "grafana/grafana:master-${CIRCLE_SHA1}" "grafana/grafana:master-new-pipeline"
docker push "grafana/grafana:master-new-pipeline"
docker tag "grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}" "grafana/grafana-arm32v7-linux:master-new-pipeline"
docker push "grafana/grafana-arm32v7-linux:master-new-pipeline"
docker tag "grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}" "grafana/grafana-arm64v8-linux:master-new-pipeline"
docker push "grafana/grafana-arm64v8-linux:master-new-pipeline"
- run:
name: Publish Docker manifest
command: |
export DOCKER_CLI_EXPERIMENTAL=enabled
docker manifest create "grafana/grafana:master-${CIRCLE_SHA1}-new-pipeline" "grafana/grafana:master-${CIRCLE_SHA1}-new-pipeline" \
"grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}-new-pipeline" \
"grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}-new-pipeline"
docker manifest push "grafana/grafana:master-${CIRCLE_SHA1}-new-pipeline"
docker manifest create "grafana/grafana:master-new-pipeline" \
"grafana/grafana:master-new-pipeline" \
"grafana/grafana-arm32v7-linux:master-new-pipeline" \
"grafana/grafana-arm64v8-linux:master-new-pipeline"
docker manifest push "grafana/grafana:master-new-pipeline"
- run:
name: CI job failed
command: ./scripts/ci-job-failed.sh
@ -604,20 +605,21 @@ jobs:
name: Publish Docker images
command: |
export DOCKER_CLI_EXPERIMENTAL=enabled
docker tag "grafana/grafana:master-${CIRCLE_SHA1}-ubuntu" "grafana/grafana:master-${CIRCLE_SHA1}-ubuntu-new-pipeline"
docker push "grafana/grafana:master-${CIRCLE_SHA1}-ubuntu-new-pipeline"
docker tag "grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}-ubuntu" "grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}-ubuntu-new-pipeline"
docker push "grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}-ubuntu-new-pipeline"
docker tag "grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}-ubuntu" "grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}-ubuntu-new-pipeline"
docker push "grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}-ubuntu-new-pipeline"
docker tag "grafana/grafana:master-${CIRCLE_SHA1}-ubuntu" "grafana/grafana:master-ubuntu-new-pipeline"
docker push "grafana/grafana:master-ubuntu-new-pipeline"
docker tag "grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}-ubuntu" "grafana/grafana-arm32v7-linux:master-ubuntu-new-pipeline"
docker push "grafana/grafana-arm32v7-linux:master-ubuntu-new-pipeline"
docker tag "grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}-ubuntu" "grafana/grafana-arm64v8-linux:master-ubuntu-new-pipeline"
docker push "grafana/grafana-arm64v8-linux:master-ubuntu-new-pipeline"
- run:
name: Publish Docker manifest
command: |
export DOCKER_CLI_EXPERIMENTAL=enabled
docker manifest create "grafana/grafana:master-${CIRCLE_SHA1}-ubuntu-new-pipeline" "grafana/grafana:master-${CIRCLE_SHA1}-ubuntu-new-pipeline" \
"grafana/grafana-arm32v7-linux:master-${CIRCLE_SHA1}-ubuntu-new-pipeline" \
"grafana/grafana-arm64v8-linux:master-${CIRCLE_SHA1}-ubuntu-new-pipeline"
docker manifest push "grafana/grafana:master-${CIRCLE_SHA1}-ubuntu-new-pipeline"
docker manifest create "grafana/grafana:master-ubuntu-new-pipeline" \
"grafana/grafana:master-ubuntu-new-pipeline" \
"grafana/grafana-arm32v7-linux:master-ubuntu-new-pipeline" \
"grafana/grafana-arm64v8-linux:master-ubuntu-new-pipeline"
docker manifest push "grafana/grafana:master-ubuntu-new-pipeline"
- run:
name: CI job failed
command: ./scripts/ci-job-failed.sh