File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77jobs :
88 build-test-containers :
99 runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ packages : write
1013 strategy :
1114 fail-fast : false
1215 matrix :
4245 echo "tag=$tag" >> $GITHUB_ENV
4346
4447 - name : Login and Deploy Container
45- if : ( github.event_name != 'pull_request')
48+ if : github.event_name != 'pull_request'
4649 run : |
47- echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
48- container_name=$(echo ${GITHUB_REPOSITORY} | tr '[:upper:]' '[:lower:]')
49- singularity push container.sif oras://ghcr.io/${container_name}:${tag}
50+ echo "${{ secrets.GITHUB_TOKEN }}" | singularity registry login \
51+ -u "${{ github.repository_owner }}" --password-stdin oras://ghcr.io
52+ container_name=$(echo "${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')
53+ singularity push container.sif "oras://ghcr.io/${container_name}:${tag}"
You can’t perform that action at this time.
0 commit comments