Skip to content

Commit

Permalink
Electron app : Update docker image archive, fix ref
Browse files Browse the repository at this point in the history
  • Loading branch information
fxi committed Apr 23, 2024
1 parent ec0eb88 commit 599024a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions electron/update_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ fi
# Prepare archive directory
mkdir -p $ARCHIVE_DIR

# Pull the latest image
docker pull $AM5_IMAGE:latest

# Extract version from version.txt inside the latest image
AM5_VERSION=$(docker run --rm $AM5_IMAGE:latest cat version.txt)

Expand All @@ -51,7 +48,7 @@ if [[ -e $ARCHIVE_PATH ]]; then
fi

# Save the image with the specific version
docker save $AM5_IMAGE:$AM5_VERSION > $ARCHIVE_PATH
docker save $AM5_IMAGE:latest > $ARCHIVE_PATH

# Create metadata
echo '{"tag": "'$AM5_VERSION'","image_name": "'$AM5_IMAGE'","file": "'$ARCHIVE_FILE'"}' > $META_PATH
Expand Down

0 comments on commit 599024a

Please sign in to comment.