Compare commits

...

2 Commits

Author SHA1 Message Date
92462bd316 Try to use GHA cache instead
Some checks failed
Build and Publish Docker Container / build (push) Failing after 13m16s
2024-06-03 20:46:08 +01:00
f0b0cb1567 Start tagging with SHA as well as latest 2024-06-03 20:45:39 +01:00

View File

@ -18,15 +18,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: https://github.com/actions/cache@v3
with:
path: |
/tmp/.buildx-cache.bookworm
/tmp/.buildx-cache.latest
key: ${{ runner.os }}-buildx-${{ gitea.sha }}
restore-keys: |
${{ runner.os }}-buildx-
# - name: Cache Docker layers
# uses: actions/cache@v3
# with:
# path: |
# /tmp/.buildx-cache.bookworm
# /tmp/.buildx-cache.latest
# key: ${{ runner.os }}-buildx-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildx-
- name: Login to Docker
uses: docker/login-action@v1
@ -41,6 +41,6 @@ jobs:
context: .
push: true
file: ./Dockerfile.cache
tags: git.joshuacoles.me/personal/monzo-ingestion:latest
cache-from: type=registry,ref=user/app:latest
cache-to: type=inline
tags: git.joshuacoles.me/${{ github.repository }}:latest,git.joshuacoles.me/${{ github.repository }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max