From 7fefc9384f98dc51b27d1481c1f6d786ba12d1e8 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 16 Aug 2021 15:45:13 +0200 Subject: [PATCH] define image registry explicitly --- release.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index 0f3224c..c51dd25 100755 --- a/release.sh +++ b/release.sh @@ -50,6 +50,7 @@ fi SCRIPT_DIR=$(dirname $(readlink -f "$0")) TIMESTAMP=$(date +%Y%m%d) RELEASE_NAME="pld-linux-base-$ARCH-$TIMESTAMP" +DOCKER_REGISTRY=docker.io DOCKER_REPO="jpalus/pld-linux-$ARCH" DOCKER_TAG="$DOCKER_REPO:$TIMESTAMP" DOCKER_TAG_LATEST="$DOCKER_REPO:latest" @@ -99,10 +100,10 @@ publish_dockerhub() { error "$SCRIPT_DIR/$RELEASE_NAME.tar.xz does not exist" fi echo "Publishing release $RELEASE_NAME to Docker Hub" - run_log "Importing docker image $DOCKER_TAG" podman import "$SCRIPT_DIR/$RELEASE_NAME.tar.xz" $DOCKER_TAG - run_log "Tagging docker image $DOCKER_TAG as latest" podman tag $DOCKER_TAG $DOCKER_TAG_LATEST - run_log "Pushing docker tag $DOCKER_TAG" podman push $DOCKER_TAG - run_log "Pushing docker tag $DOCKER_TAG_LATEST" podman push $DOCKER_TAG_LATEST + run_log "Importing docker image $DOCKER_TAG" podman import "$SCRIPT_DIR/$RELEASE_NAME.tar.xz" $DOCKER_REGISTRY/$DOCKER_TAG + run_log "Tagging docker image $DOCKER_TAG as latest" podman tag $DOCKER_REGISTRY/$DOCKER_TAG $DOCKER_REGISTRY/$DOCKER_TAG_LATEST + run_log "Pushing docker tag $DOCKER_TAG" podman push $DOCKER_REGISTRY/$DOCKER_TAG + run_log "Pushing docker tag $DOCKER_TAG_LATEST" podman push $DOCKER_REGISTRY/$DOCKER_TAG_LATEST } case "$1" in