Skip to content

Commit

Permalink
package name w sif
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhgn committed May 8, 2024
1 parent 0b917ac commit f07baf7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,13 @@ jobs:
IFS= read -r first_tag <<EOF
$tags
EOF
echo "The first tag is: $first_tag"
echo "CSV-tags are: $csv_tags"
push_tags="$(printf $csv_tags | sed -e "s/nothingtoseehere/nothingtoseehere_sif/g")"
echo "PUSH-tags are: $push_tags"
# push_tags="$(printf $csv_tags | sed -e "s/nothingtoseehere/nothingtoseehere_sif/g")"
push_tag="$(printf $first_tag | sed -e "s/nothingtoseehere/nothingtoseehere_sif/g")"
# echo ${{ secrets.GITHUB_TOKEN }} | oras login --username ${{ github.repository_owner }} --password-stdin ghcr.io
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 --entrypoint /bin/sh -v $(pwd):/work kaczmarj/apptainer -c "apptainer remote login -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }} oras://ghcr.io && apptainer push nothingtoseehere.sif oras://$push_tags"
docker run --rm --privileged --entrypoint /bin/sh -v $(pwd):/work kaczmarj/apptainer -c "apptainer remote login -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_TOKEN }} oras://ghcr.io && apptainer push nothingtoseehere.sif oras://$push_tag"
rm nothingtoseehere.sif
shell: sh

0 comments on commit f07baf7

Please sign in to comment.