From b7f6a98debf590c86c1f46e9827c5ddd7a0fc778 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 2 Sep 2020 14:28:01 -0700 Subject: [PATCH] devops: use a helper script to tag and push docker images (#3737) It turns out that the new `docker push --all-tags` is not yet available in the latest docker distribution on Ubuntu 20.04. This provides a helper script to tag and publish the docker image. --- .github/workflows/publish_canary_docker.yml | 5 ++--- docs/docker/tag_and_push.sh | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100755 docs/docker/tag_and_push.sh diff --git a/.github/workflows/publish_canary_docker.yml b/.github/workflows/publish_canary_docker.yml index eb79d81953..a2fdaae65a 100644 --- a/.github/workflows/publish_canary_docker.yml +++ b/.github/workflows/publish_canary_docker.yml @@ -32,7 +32,6 @@ jobs: - run: ./docs/docker/build.sh - name: tag & publish run: | - docker tag playwright:localbuild playwright.azurecr.io/public/playwright:next - docker tag playwright:localbuild playwright.azurecr.io/public/playwright:sha-${{ github.sha }} - docker push --all-tags playwright.azurecr.io/public/playwright + ./docs/docker/tag_and_push.sh playwright.azurecr.io/public/playwright:next + ./docs/docker/tag_and_push.sh playwright.azurecr.io/public/playwright:sha-${{ github.sha }} diff --git a/docs/docker/tag_and_push.sh b/docs/docker/tag_and_push.sh new file mode 100755 index 0000000000..b754084317 --- /dev/null +++ b/docs/docker/tag_and_push.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "-- tagging: $1" +docker tag playwright:localbuild $1 +docker push $1