Skip to content

Commit

Permalink
fixup! Syncing with regctl
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonb committed May 25, 2024
1 parent b2aa599 commit 9bfa81a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/mirror-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,10 @@ jobs:
uses: iarekylew00t/regctl-installer@v1

- name: Login to Docker Hub
run: |
echo "x${{ secrets.DOCKERHUB_TOKEN }}" | \
regctl registry login docker.io \
--user "${{ vars.DOCKERHUB_USERNAME }}" \
--pass-stdin \
|| false
run: regctl registry login docker.io --user "${{ vars.DOCKERHUB_USERNAME }}" --pass "x${{ secrets.DOCKERHUB_TOKEN }}"

- name: Login to GitHub Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | \
regctl registry login ghcr.io \
--user "${{ github.repository_owner }}" \
--pass-stdin \
|| false
run: regctl registry login ghcr.io --user "${{ github.repository_owner }}" --pass "x${{ secrets.GITHUB_TOKEN }}"

- name: Mirror ${{ github.event.inputs.dockerhub-repo }} to ${{ github.repository_owner }}/${{ github.event.inputs.dockerhub-repo }}
run: regctl image copy ${{ github.event.inputs.dockerhub-repo }} ghcr.io/${{ github.repository_owner }}/${{ github.event.inputs.dockerhub-repo }}

0 comments on commit 9bfa81a

Please sign in to comment.