File tree 1 file changed +13
-2
lines changed
scripts/buildkite/release
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ main_build=$(curl -H "Authorization: Bearer $BUILDKITE_API_TOKEN" \
23
23
24
24
mkdir -p artifacts
25
25
26
+ repo=" cardano-foundation/cardano-wallet"
27
+
26
28
artifact () {
27
29
local artifact_name=$1
28
30
# shellcheck disable=SC2155
@@ -33,10 +35,19 @@ artifact() {
33
35
curl -H " Authorization: Bearer $BUILDKITE_API_TOKEN " -L \
34
36
-o " artifacts/$artifact_name " \
35
37
" $artifact_value "
36
- local image_name=" cardanofoundation/cardano-wallet:$TAG "
37
38
docker login -u cfhal -p " $DOCKER_HUB_TOKEN "
38
39
docker load -i " artifacts/$artifact_name "
39
- docker push " $image_name "
40
+ local image_name=" $repo :$TAG "
41
+ if [ " $RELEASE " == " false" ]; then
42
+ local loaded_image_name=" $repo :$NEW_GIT_TAG "
43
+ docker tag " $loaded_image_name " " $image_name "
44
+ docker push " $image_name "
45
+ else
46
+ local latest_image_name=" $repo :latest"
47
+ docker push " $image_name "
48
+ docker tag " $image_name " " $latest_image_name "
49
+ docker push " $latest_image_name "
50
+ fi
40
51
}
41
52
42
53
artifact " cardano-wallet-$NEW_GIT_TAG -docker-image.tgz"
You can’t perform that action at this time.
0 commit comments