Skip to content

Commit

Permalink
Update mirror.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Aug 14, 2024
1 parent d1ccee3 commit e033720
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
- name: Check out the repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up Docker Buildx
run: |
docker run --privileged --rm tonistiigi/binfmt --install all
docker buildx create --use
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

Expand All @@ -31,13 +36,13 @@ jobs:
src="eclipse-temurin:$tag"
dest="ghcr.io/${{ github.repository_owner }}/eclipse-temurin:$tag"
# Pull the image from Docker Hub
docker pull $src
# Tag the image for GitHub Container Registry
# Pull the manifest list (multi-platform image) from Docker Hub for all specified platforms
docker pull --platform=linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,windows/amd64 $src
# Tag the manifest list for GitHub Container Registry
docker tag $src $dest
# Push the image to GitHub Container Registry
# Push the manifest list to GitHub Container Registry
docker push $dest
done < tags.txt

0 comments on commit e033720

Please sign in to comment.