Skip to content

Commit

Permalink
fix: docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eredotpkfr committed Dec 2, 2024
1 parent f1108c2 commit 98b24c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
env:
REGISTRY_IMAGE: ${{ secrets.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }}
IMAGE_TAG: latest
BUILD_CACHE: buildcache

jobs:
build-and-push:
Expand Down Expand Up @@ -53,8 +54,8 @@ jobs:
tags: ${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}
cache-to: type=registry,ref=${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }},mode=max
cache-from: type=registry,ref=${{ env.REGISTRY_IMAGE }}:${{ env.BUILD_CACHE }}-${{ env.PLATFORM_PAIR }}
cache-to: type=registry,ref=${{ env.REGISTRY_IMAGE }}:${{ env.BUILD_CACHE }}-${{ env.PLATFORM_PAIR }},mode=max

- name: Export digest
run: |
Expand Down

0 comments on commit 98b24c4

Please sign in to comment.