Skip to content

Commit aa3b9aa

Browse files
committed
Optimized pipeline
1 parent 226266c commit aa3b9aa

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/docker-publish-tags-fenics.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,24 @@ jobs:
1313
packages: write
1414
steps:
1515
- name: Check out the repo
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
17+
18+
- name: Free Disk Space (Ubuntu)
19+
uses: jlumbroso/free-disk-space@main
20+
with:
21+
tool-cache: false
22+
android: true
23+
dotnet: true
24+
haskell: true
25+
large-packages: true
26+
docker-images: true
27+
swap-storage: true
1728

1829
- name: Set up QEMU
19-
uses: docker/setup-qemu-action@v2
30+
uses: docker/setup-qemu-action@v3
2031

2132
- name: Set up Docker Buildx
22-
uses: docker/setup-buildx-action@v2
33+
uses: docker/setup-buildx-action@v3
2334

2435
- name: Log in to GitHub Docker Registry
2536
uses: docker/login-action@v3
@@ -29,9 +40,11 @@ jobs:
2940
password: ${{ secrets.GHCR_PAT }}
3041

3142
- name: Build and push Docker image
32-
uses: docker/build-push-action@v2
43+
uses: docker/build-push-action@v5
3344
with:
3445
context: ./fenics
3546
push: true
3647
tags: ghcr.io/${{ github.actor }}/docker-4-teaching-fenics:latest
3748
platforms: linux/arm64,linux/amd64
49+
cache-from: type=gha
50+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)