Start tagging with SHA as well as latest
This commit is contained in:
parent
8478fa0b38
commit
f0b0cb1567
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -18,15 +18,15 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Cache Docker layers
|
# - name: Cache Docker layers
|
||||||
uses: https://github.com/actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
with:
|
# with:
|
||||||
path: |
|
# path: |
|
||||||
/tmp/.buildx-cache.bookworm
|
# /tmp/.buildx-cache.bookworm
|
||||||
/tmp/.buildx-cache.latest
|
# /tmp/.buildx-cache.latest
|
||||||
key: ${{ runner.os }}-buildx-${{ gitea.sha }}
|
# key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
restore-keys: |
|
# restore-keys: |
|
||||||
${{ runner.os }}-buildx-
|
# ${{ runner.os }}-buildx-
|
||||||
|
|
||||||
- name: Login to Docker
|
- name: Login to Docker
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
@ -41,6 +41,6 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
file: ./Dockerfile.cache
|
file: ./Dockerfile.cache
|
||||||
tags: git.joshuacoles.me/personal/monzo-ingestion:latest
|
tags: git.joshuacoles.me/${{ github.repository }}:latest,git.joshuacoles.me/${{ github.repository }}:${{ github.sha }}
|
||||||
cache-from: type=registry,ref=user/app:latest
|
cache-from: type=registry,ref=user/app:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user