Skip to content

Commit

Permalink
[github] fix push-main.yml and skopeo sync (#1130)
Browse files Browse the repository at this point in the history
The container that we're preparing to run skopeo in needs to also include a copy of the promote-images.yml file for `skopeo sync`.
  • Loading branch information
kylos101 authored Jul 13, 2023
1 parent 36fd599 commit b8553af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ jobs:
cat <<EOF | sudo tee /usr/local/bin/skopeo > /dev/null
#/bin/bash
PROMOTE_IMAGES=$(mktemp -d)
cp .github/promote-images.yml "${PROMOTE_IMAGES}"
docker run --rm \
-v "${SKOPEO_AUTH_DIR}":/skopeo.auth \
-v "${PROMOTE_IMAGES}":/.github \
-e REGISTRY_AUTH_FILE=/skopeo.auth/auth \
quay.io/skopeo/stable:v"${SKOPEO_VERSION}" "\$@"
EOF
Expand Down

0 comments on commit b8553af

Please sign in to comment.