Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use GHCR for install.sh #11

Merged
merged 4 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cargo install --locked blue-build
This will install the binary on your system in `/usr/local/bin`. This is only a `linux-gnu` version.

```bash
podman run --rm registry.gitlab.com/wunker-bunker/blue-build:latest-installer | sudo bash
podman run --rm ghcr.io/blue-build/cli:latest-installer | sudo bash
```

## How to use
Expand Down Expand Up @@ -97,7 +97,7 @@ variables:
- "build-image"
build-image:
stage: build
image: registry.gitlab.com/wunker-bunker/blue-build:alpine
image: ghcr.io/blue-build/cli:alpine
retry: 2
rules:
- if: $ACTION == "build-image"
Expand Down
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:latest-installer
}

podman pull registry.gitlab.com/wunker-bunker/blue-build:latest-installer
podman pull ghcr.io/blue-build/cli:latest-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:latest-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:latest-installer | sudo bash\n"
exit 1
else
cleanup
Expand Down
2 changes: 1 addition & 1 deletion templates/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq

COPY --from=gcr.io/projectsigstore/cosign /ko-app/cosign /usr/bin/cosign

COPY --from=registry.gitlab.com/wunker-bunker/blue-build:
COPY --from=ghcr.io/blue-build/cli:
{%- if let Some(tag) = recipe.blue_build_tag -%}
{{ tag }}
{%- else -%}
Expand Down