Skip to content

Commit 03c6224

Browse files
authored
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.
1 parent 8135d2e commit 03c6224

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ci/steps/docker-buildx-push.sh

-16
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
# See if this version already exists on Docker Hub.
5-
function version_exists() {
6-
local output
7-
output=$(curl --silent "https://index.docker.io/v1/repositories/codercom/code-server/tags/$VERSION")
8-
if [[ $output == "Tag not found" ]]; then
9-
return 1
10-
else
11-
return 0
12-
fi
13-
}
14-
154
main() {
165
cd "$(dirname "$0")/../.."
176

187
# ci/lib.sh sets VERSION and provides download_artifact here
198
source ./ci/lib.sh
209

21-
if version_exists; then
22-
echo "$VERSION is already pushed"
23-
return
24-
fi
25-
2610
# Download the release-packages artifact
2711
download_artifact release-packages ./release-packages
2812

0 commit comments

Comments
 (0)