Skip to content

Commit a0b1c52

Browse files
authored
Merge pull request #40 from PhilanthropyDataCommons/39-set-docker-platform-manifest
Use 'buildcache' for docker image build cache
2 parents 9750942 + ad8772f commit a0b1c52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ jobs:
3838
uses: docker/build-push-action@v3
3939
with:
4040
context: .
41+
platforms: linux/amd64
4142
push: true
4243
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
43-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
44-
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,mode=max
44+
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
45+
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
4546
- name: Notify the top-level 'deploy' project that an image was pushed
4647
uses: aurelien-baudet/workflow-dispatch@v2.1.1
4748
with:

0 commit comments

Comments
 (0)