Skip to content

Commit

Permalink
gpt
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhgn committed Apr 30, 2024
1 parent 67b8fb5 commit d3d354e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ jobs:
type=sha
- name: Pull and push Singularity container
run: |
echo ${{ steps.meta.outputs.tags }}
tag=${{ steps.meta.outputs.tags[0] }}
echo $tag
tags="${{ steps.meta.outputs.tags }}"
IFS=$'\n' read -r -a tag_array <<< "$tags"
for tag in "${tag_array[@]}"
do
echo $tag
singularity pull nothingtoseehere.sif docker://ghcr.io/${{ github.repository_owner }}/nothingtoseehere:$tag
echo ${{ secrets.GITHUB_TOKEN }} | oras login --username ${{ github.repository_owner }} --password-stdin ghcr.io
oras push ghcr.io/${{ github.repository_owner }}/nothingtoseehere:$tag --artifact-type application/vnd.acme.rocket.config nothingtoseehere.sif
Expand Down

0 comments on commit d3d354e

Please sign in to comment.