From 03c62242ee2a60d1eb61b46335916dd34a95b48e Mon Sep 17 00:00:00 2001 From: Jonathan Yu Date: Fri, 11 Feb 2022 09:32:02 -0800 Subject: [PATCH] chore: allow overwriting Docker images (#4850) Allow Docker images to be overwritten, which is required to update dependencies in the base image when the upstream vendor resolves security issues. --- ci/steps/docker-buildx-push.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ci/steps/docker-buildx-push.sh b/ci/steps/docker-buildx-push.sh index 75688cb5..c3bb0579 100755 --- a/ci/steps/docker-buildx-push.sh +++ b/ci/steps/docker-buildx-push.sh @@ -1,28 +1,12 @@ #!/usr/bin/env bash set -euo pipefail -# See if this version already exists on Docker Hub. -function version_exists() { - local output - output=$(curl --silent "https://index.docker.io/v1/repositories/codercom/code-server/tags/$VERSION") - if [[ $output == "Tag not found" ]]; then - return 1 - else - return 0 - fi -} - main() { cd "$(dirname "$0")/../.." # ci/lib.sh sets VERSION and provides download_artifact here source ./ci/lib.sh - if version_exists; then - echo "$VERSION is already pushed" - return - fi - # Download the release-packages artifact download_artifact release-packages ./release-packages