Skip to content

Commit c808e2d

Browse files
Permissions and single line
1 parent 8e74490 commit c808e2d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/buildapptainers.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
alma9-g4.11.1-bdsim, alma9-g4.11.2-bdsim,
2020
alma9-g4.11.3-bdsim]
2121

22-
# permissions:
23-
# contents: read
24-
# packages: write # required for GHCR access
22+
permissions:
23+
contents: read
24+
packages: write # required for GHCR access
2525

2626
steps:
2727
- name: Dump job context
@@ -63,6 +63,4 @@ jobs:
6363
echo $GHCR_USER
6464
echo ${{ github.repository_owner }}
6565
echo ${{ github.ref_name }}
66-
docker run -v /tmp:/tmp --rm bdsim/alma9-apptainer "\
67-
echo "$GHCR_TOKEN" | apptainer remote login -u "$GHCR_USER" --password-stdin oras://ghcr.io && \
68-
apptainer push /tmp/${{ matrix.dockerimage }}.sif oras://ghcr.io/${{ github.repository_owner }}/${{ matrix.dockerimage }}:${{ github.ref_name }}"
66+
docker run -v /tmp:/tmp --rm bdsim/alma9-apptainer echo "$GHCR_TOKEN" | apptainer remote login -u "$GHCR_USER" --password-stdin oras://ghcr.io && apptainer push /tmp/${{ matrix.dockerimage }}.sif oras://ghcr.io/${{ github.repository_owner }}/${{ matrix.dockerimage }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)