From d59d6fd9e59d42d7a30dfab7c76f16476f623894 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Tue, 30 May 2023 12:07:07 +0200 Subject: [PATCH] decompress tarball before importing with podman Fixes #2 --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index b986916..7b309b1 100755 --- a/release.sh +++ b/release.sh @@ -174,7 +174,7 @@ publish_dockerhub() { IMAGE_VARIANT=v7 ;; esac - run_log "Importing docker image $DOCKER_TAG" podman import --os linux --arch $IMAGE_ARCH ${IMAGE_VARIANT:+--variant $IMAGE_VARIANT} "$SCRIPT_DIR/$RELEASE_NAME.tar.xz" $DOCKER_REGISTRY/$DOCKER_TAG + xz -dc < "$SCRIPT_DIR/$RELEASE_NAME.tar.xz" | run_log "Importing docker image $DOCKER_TAG" podman import --os linux --arch $IMAGE_ARCH ${IMAGE_VARIANT:+--variant $IMAGE_VARIANT} - $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 -f v2s2 $DOCKER_REGISTRY/$DOCKER_TAG run_log "Pushing docker tag $DOCKER_TAG_LATEST" podman push -f v2s2 $DOCKER_REGISTRY/$DOCKER_TAG_LATEST