Skip to content

Commit

Permalink
fixup! Copy docker.io images to ghcr.io/nethserver mirror (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi committed Nov 22, 2024
1 parent 106dbd4 commit 82816c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/repomd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}
env:
REGISTRY_AUTH_FILE: ./.registryauth.json
REGISTRY_GHCR_IO_TOKEN: ${{ secrets.REGISTRY_GHCR_IO_TOKEN }}
REGISTRY_DOCKER_IO_TOKEN: ${{ secrets.REGISTRY_DOCKER_IO_TOKEN }}
run: |
trap 'rm -vf "${REGISTRY_AUTH_FILE}"' exit
podman login -u nethbot ghcr.io <<<"{{ secrets.REGISTRY_GHCR_IO_TOKEN }}"
podman login -u nethbot docker.io <<<"{{ secrets.REGISTRY_DOCKER_IO_TOKEN }}"
podman login --password-stdin -u nethbot ghcr.io <<<"${REGISTRY_GHCR_IO_TOKEN:?}"
podman login --password-stdin -u nethbot docker.io <<<"${REGISTRY_DOCKER_IO_TOKEN:?}"
bash syncmirrors.sh <repodata.json
podman logout -a
Expand Down

0 comments on commit 82816c1

Please sign in to comment.