Use GitHub Actions cache

This commit is contained in:
Jan-Lukas Else 2023-04-15 19:19:42 +02:00
parent 40a6cd2ed3
commit 8bb41c9fb6
1 changed files with 6 additions and 0 deletions

View File

@ -35,18 +35,24 @@ jobs:
push: false push: false
target: test target: test
tags: test tags: test
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build base image - name: Build base image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
push: true push: true
target: base target: base
tags: ghcr.io/jlelse/goblog:latest,git.jlel.se/jlelse/goblog:latest tags: ghcr.io/jlelse/goblog:latest,git.jlel.se/jlelse/goblog:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build tools image - name: Build tools image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
push: true push: true
target: tools target: tools
tags: ghcr.io/jlelse/goblog:tools,git.jlel.se/jlelse/goblog:tools tags: ghcr.io/jlelse/goblog:tools,git.jlel.se/jlelse/goblog:tools
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Delete old untagged images - name: Delete old untagged images
uses: camargo/delete-untagged-action@v1 uses: camargo/delete-untagged-action@v1
with: with: