Skip to content

Commit

Permalink
login to the ghcr.io before push
Browse files Browse the repository at this point in the history
  • Loading branch information
omgbebebe committed Aug 21, 2024
1 parent 17542b8 commit fce983f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_oci_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
run: nix build .#docker
- name: Set up skopeo environment
uses: warjiang/[email protected]
- name: 'Sync images'
- name: Login to repository
run: |
echo ${{ secrets.MINDWM_TOKEN }} | skopeo login -u metacoma --password-stdin ghcr.io
- name: Push image
run: |
skopeo --version
skopeo copy --dest-creds \
${{ secrets.DEST_REGISTRY_USER }}:${{ secrets.DEST_REGISTRY_PASSWORD }} \
docker-archive:./result \
docker://${{ secrets.DEST_REGISTRY }}/context-io:latest

0 comments on commit fce983f

Please sign in to comment.