Skip to content

Commit 3dffff6

Browse files
authored
Merge pull request #54 from WEHI-ResearchComputing/feature/gradio-gui
Incorrect registry call in workflow
2 parents cbd8a52 + e92139a commit 3dffff6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/singularity.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
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:
@@ -42,8 +45,9 @@ jobs:
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}"

0 commit comments

Comments
 (0)