mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 15:26:17 +02:00
fail early
This commit is contained in:
parent
4fc3c4da7b
commit
50a9c48db4
1 changed files with 7 additions and 7 deletions
|
@ -17,6 +17,13 @@ DOCKER_MANIFEST_LATEST=""
|
|||
|
||||
for PLATFORM in $PLATFORMS;
|
||||
do
|
||||
if [ "$PLATFORM" = "x86_64-linux" ]; then DOCKER_PLATFORM="amd64"
|
||||
elif [ "$PLATFORM" = "aarch64-linux" ]; then DOCKER_PLATFORM="arm64"
|
||||
else
|
||||
echo "EROROR: No docker platform found for $PLATFORM platform"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=> Loading docker image for $PLATFORM platform ..."
|
||||
|
||||
DOCKER_IMAGE_TMP_FILE="$PWD/image-$PLATFORM.tar.gz"
|
||||
|
@ -25,13 +32,6 @@ do
|
|||
fi
|
||||
docker load -i $DOCKER_IMAGE_TMP_FILE
|
||||
|
||||
if [ "$PLATFORM" = "x86_64-linux" ]; then DOCKER_PLATFORM="amd64"
|
||||
elif [ "$PLATFORM" = "aarch64-linux" ]; then DOCKER_PLATFORM="arm64"
|
||||
else
|
||||
echo "EROROR: No docker platform found for $PLATFORM platform"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=> Tagging docker image of version $VERSION for $PLATFORM platform ..."
|
||||
|
||||
docker tag nix:$VERSION nixos/nix:$VERSION-$DOCKER_PLATFORM
|
||||
|
|
Loading…
Reference in a new issue