chore: Add cargo release files

This commit is contained in:
Gerald Pinder 2024-02-13 16:33:43 -05:00
parent d973f330cb
commit b0d448ab66
3 changed files with 91 additions and 2 deletions

View file

@ -2,13 +2,15 @@
set -euo pipefail
VERSION=v0.7.0
# We use sudo for podman so that we can copy directly into /usr/local/bin
function cleanup() {
echo "Cleaning up image"
sudo podman stop -i -t 0 blue-build-installer
sleep 2
sudo podman image rm ghcr.io/blue-build/cli:latest-installer
sudo podman image rm ghcr.io/blue-build/cli:${VERSION}-installer
}
trap cleanup SIGINT
@ -19,7 +21,7 @@ sudo podman run \
--detach \
--rm \
--name blue-build-installer \
ghcr.io/blue-build/cli:latest-installer \
ghcr.io/blue-build/cli:${VERSION}-installer \
tail -f /dev/null
set +e