Skip to content

Commit

Permalink
auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhgn committed May 8, 2024
1 parent e038408 commit 8c2a913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ jobs:
docker pull kaczmarj/apptainer:latest
docker run --rm --privileged -v $(pwd):/work kaczmarj/apptainer build nothingtoseehere.sif docker://"$first_tag"
# oras push "$push_tags" nothingtoseehere.sif
echo ${{ secrets.GITHUB_TOKEN }} | docker run --rm --privileged -v $(pwd):/work kaczmarj/apptainer remote login -u ${{ github.repository_owner }} --password-stdin oras://ghcr.io
# echo ${{ secrets.GITHUB_TOKEN }} |
docker run --rm --privileged -v $(pwd):/work kaczmarj/apptainer remote login -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }} oras://ghcr.io
docker run --rm --privileged -v $(pwd):/work kaczmarj/apptainer push nothingtoseehere.sif oras://"$first_tag"
rm nothingtoseehere.sif
shell: sh

0 comments on commit 8c2a913

Please sign in to comment.