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

update docker ref to pull from GHCR image #301

Merged
merged 1 commit into from
Nov 6, 2024
Merged
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
7 changes: 3 additions & 4 deletions .github/workflows/reusable-prober.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,11 @@ jobs:
# Setup the registry on port 1338
- uses: chainguard-dev/actions/setup-registry@main

# uses container already cached on runner image to avoid rate limits and network flakes
# this assumes that an alpine image is cached, and doesn't care which tag it uses - this
# hopefully prevents us from having a page to update a tag ref
# this pulls a container from GHCR to avoid docker.io rate limiting and minimize network flake risk
- name: Build and copy a container image
run: |
docker tag $(docker images --format "{{.Repository}}:{{.Tag}}" -f "reference=alpine*" | head -1) ${IMAGE}
docker pull ghcr.io/linuxcontainers/alpine
docker tag ghcr.io/linuxcontainers/alpine ${IMAGE}
docker push ${IMAGE}

# START: PREPRODUCTION VERIFICATION:
Expand Down