Skip to content

Commit

Permalink
update docker ref to pull from GHCR image (#301)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored Nov 6, 2024
1 parent fb5542b commit 84c3c7c
Showing 1 changed file with 3 additions and 4 deletions.
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

0 comments on commit 84c3c7c

Please sign in to comment.