Skip to content

Commit

Permalink
Further clean up script
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Jan 26, 2024
1 parent 85af084 commit 34142c8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ function cleanup() {
sudo podman stop -i -t 0 blue-build-installer
sleep 2
sudo podman image rm ghcr.io/blue-build/cli:latest-installer
rm -f bb
}

trap cleanup SIGINT

sudo podman pull ghcr.io/blue-build/cli:latest-installer

sudo podman run --replace -d --rm --name blue-build-installer ghcr.io/blue-build/cli:latest-installer tail -f /dev/null
sudo podman run \
--pull always \
--replace \
--detach \
--rm \
--name blue-build-installer \
ghcr.io/blue-build/cli:latest-installer \
tail -f /dev/null

set +e
sudo podman cp blue-build-installer:/out/bb /usr/local/bin/bb
Expand Down

0 comments on commit 34142c8

Please sign in to comment.