Skip to content

Commit

Permalink
decompress tarball before importing with podman
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
jpalus committed May 30, 2023
1 parent c3854c3 commit d59d6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d59d6fd

Please sign in to comment.