Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further increase disk space available to runner in publish.yaml #28

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ jobs:
steps:
- name: Increase disk space available for building images
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc "$AGENT_TOOLSDIRECTORY"
sudo docker image prune --all --force
sudo docker builder prune -a
sudo rm -rf \
/usr/share/dotnet \
/usr/local/lib/android \
/usr/local/.ghcup \
/opt/ghc \
"$AGENT_TOOLSDIRECTORY" \
/usr/local/share/powershell \
/usr/share/swift \
/usr/lib/jvm || true

- name: Check out the repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,5 +70,5 @@ jobs:
- name: Build and push Apptainer image
run: |
TAG=$(echo "${{ steps.meta.outputs.tags }}" | head -n1 | awk -F':' '{print $2}')
apptainer build container.sif docker-daemon://${{ secrets.DOCKERHUB_USERNAME }}/enigma-pd-wml:$TAG
apptainer push -U container.sif library://${{ secrets.SYLABS_USERNAME }}/enigma-pd-wml/enigma-pd-wml:$TAG
apptainer build enigma-pd-wml.sif docker-daemon://${{ secrets.DOCKERHUB_USERNAME }}/enigma-pd-wml:$TAG
apptainer push -U enigma-pd-wml.sif library://${{ secrets.SYLABS_USERNAME }}/enigma-pd-wml/enigma-pd-wml:$TAG
Loading