Skip to content

Commit f7acb2c

Browse files
authored
Merge pull request #28 from UCL-ARC/paul/fix-apptainer-publish
Further increase disk space available to runner in `publish.yaml`
2 parents 4486d8a + 8d575a0 commit f7acb2c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ jobs:
1313
steps:
1414
- name: Increase disk space available for building images
1515
run: |
16-
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc "$AGENT_TOOLSDIRECTORY"
17-
sudo docker image prune --all --force
18-
sudo docker builder prune -a
16+
sudo rm -rf \
17+
/usr/share/dotnet \
18+
/usr/local/lib/android \
19+
/usr/local/.ghcup \
20+
/opt/ghc \
21+
"$AGENT_TOOLSDIRECTORY" \
22+
/usr/local/share/powershell \
23+
/usr/share/swift \
24+
/usr/lib/jvm || true
1925
2026
- name: Check out the repo
2127
uses: actions/checkout@v4
@@ -64,5 +70,5 @@ jobs:
6470
- name: Build and push Apptainer image
6571
run: |
6672
TAG=$(echo "${{ steps.meta.outputs.tags }}" | head -n1 | awk -F':' '{print $2}')
67-
apptainer build container.sif docker-daemon://${{ secrets.DOCKERHUB_USERNAME }}/enigma-pd-wml:$TAG
68-
apptainer push -U container.sif library://${{ secrets.SYLABS_USERNAME }}/enigma-pd-wml/enigma-pd-wml:$TAG
73+
apptainer build enigma-pd-wml.sif docker-daemon://${{ secrets.DOCKERHUB_USERNAME }}/enigma-pd-wml:$TAG
74+
apptainer push -U enigma-pd-wml.sif library://${{ secrets.SYLABS_USERNAME }}/enigma-pd-wml/enigma-pd-wml:$TAG

0 commit comments

Comments
 (0)