Skip to content

Commit

Permalink
chore: use GHCR for install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev authored Jan 24, 2024
1 parent 00b81a2 commit 212b0c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ function cleanup() {
echo "Cleaning up image"
podman stop -i -t 0 blue-build-installer
sleep 2
podman image rm registry.gitlab.com/wunker-bunker/blue-build:latest-installer
podman image rm ghcr.io/blue-build/cli:main-installer
}

podman pull registry.gitlab.com/wunker-bunker/blue-build:latest-installer
podman pull ghcr.io/blue-build/cli:main-installer

podman run -d --rm --name blue-build-installer registry.gitlab.com/wunker-bunker/blue-build:latest-installer tail -f /dev/null
podman run -d --rm --name blue-build-installer ghcr.io/blue-build/cli:main-installer tail -f /dev/null

set +e
podman cp blue-build-installer:/out/bb /usr/local/bin/bb
Expand All @@ -22,7 +22,7 @@ set -e
if [ -n $RETVAL ]; then
cleanup
echo "Failed to copy file, try:"
printf "\tpodman run --rm registry.gitlab.com/wunker-bunker/blue-build:latest-installer | sudo bash\n"
printf "\tpodman run --rm ghcr.io/blue-build/cli:main-installer | sudo bash\n"
exit 1
else
cleanup
Expand Down

0 comments on commit 212b0c0

Please sign in to comment.