Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

ci: don't fail docker publish when cache export fails

Matt Roberts08318a7ca176
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index a7d68385d..eb3643bb9 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -65,7 +65,9 @@ jobs:
getfider/fider:SHA_${{ github.event.workflow_run.head_sha }}
getfider/fider:${{ github.event.workflow_run.head_branch == 'main' && 'main' || 'stable' }}
cache-from: type=gha
- cache-to: type=gha,mode=max
+ # Cache export runs after the image is pushed; a failure there (e.g. two publish
+ # runs racing for the same cache key) must not mark a successful publish as failed.
+ cache-to: type=gha,mode=max,ignore-error=true
- name: build and push docker image (push tag)
if: ${{ github.event.workflow_run.event == 'release' }}
@@ -79,4 +81,6 @@ jobs:
platforms: linux/amd64,linux/arm64/v8
tags: getfider/fider:${{ github.event.workflow_run.display_title }}
cache-from: type=gha
- cache-to: type=gha,mode=max
+ # Cache export runs after the image is pushed; a failure there (e.g. two publish
+ # runs racing for the same cache key) must not mark a successful publish as failed.
+ cache-to: type=gha,mode=max,ignore-error=true