Skip to content

Commit 3f5f6c3

Browse files
committed
Add caching for docker-build-push, fix release
1 parent a5fec48 commit 3f5f6c3

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/docker-images.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
push: true
8181
tags: ${{ steps.meta.outputs.tags }}
8282
labels: ${{ steps.meta.outputs.labels }}
83+
cache-from: type=gha
84+
cache-to: type=gha,mode=max
8385
- name: Generate artifact attestation
8486
uses: actions/attest-build-provenance@v1
8587
with:
@@ -124,6 +126,8 @@ jobs:
124126
push: true
125127
tags: ${{ steps.meta.outputs.tags }}
126128
labels: ${{ steps.meta.outputs.labels }}
129+
cache-from: type=gha
130+
cache-to: type=gha,mode=max
127131
- name: Generate artifact attestation
128132
uses: actions/attest-build-provenance@v1
129133
with:
@@ -169,6 +173,8 @@ jobs:
169173
push: true
170174
tags: ${{ steps.meta.outputs.tags }}
171175
labels: ${{ steps.meta.outputs.labels }}
176+
cache-from: type=gha
177+
cache-to: type=gha,mode=max
172178
- name: Generate artifact attestation
173179
uses: actions/attest-build-provenance@v1
174180
with:
@@ -213,6 +219,8 @@ jobs:
213219
push: true
214220
tags: ${{ steps.meta.outputs.tags }}
215221
labels: ${{ steps.meta.outputs.labels }}
222+
cache-from: type=gha
223+
cache-to: type=gha,mode=max
216224
- name: Generate artifact attestation
217225
uses: actions/attest-build-provenance@v1
218226
with:
@@ -257,6 +265,8 @@ jobs:
257265
push: true
258266
tags: ${{ steps.meta.outputs.tags }}
259267
labels: ${{ steps.meta.outputs.labels }}
268+
cache-from: type=gha
269+
cache-to: type=gha,mode=max
260270
- name: Generate artifact attestation
261271
uses: actions/attest-build-provenance@v1
262272
with:

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
push: true
8383
tags: ${{ steps.meta.outputs.tags }}
8484
labels: ${{ steps.meta.outputs.labels }}
85+
cache-from: type=gha
86+
cache-to: type=gha,mode=max
8587

8688
- name: Generate artifact attestation
8789
uses: actions/attest-build-provenance@v1
@@ -105,6 +107,9 @@ jobs:
105107

106108
- name: Generate merged docker-compose.yml
107109
run: |
110+
# Create empty env file to satisfy docker compose config
111+
touch .env.prod
112+
108113
# Merge base + prod into single file, resolving all extends
109114
docker compose -f docker-compose.yml config > docker-compose-merged.yml
110115

0 commit comments

Comments
 (0)