We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8135d2e commit 03c6224Copy full SHA for 03c6224
ci/steps/docker-buildx-push.sh
@@ -1,28 +1,12 @@
1
#!/usr/bin/env bash
2
set -euo pipefail
3
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
-
15
main() {
16
cd "$(dirname "$0")/../.."
17
18
# ci/lib.sh sets VERSION and provides download_artifact here
19
source ./ci/lib.sh
20
21
- if version_exists; then
22
- echo "$VERSION is already pushed"
23
- return
24
25
26
# Download the release-packages artifact
27
download_artifact release-packages ./release-packages
28
0 commit comments