We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e7d9ad commit 341bda8Copy full SHA for 341bda8
1 file changed
.github/workflows/container.yml
@@ -60,9 +60,9 @@ jobs:
60
platforms: linux/amd64
61
tags: ${{ steps.metadata.outputs.tags }}
62
cache-from: type=registry,ref=ghcr.io/spack/tutorial:buildcache
63
- cache-to: ${{ github.ref.name == github.event.repository.default_branch
+ cache-to: ${{ github.ref_name == github.event.repository.default_branch
64
&& 'type=registry,ref=ghcr.io/spack/tutorial:buildcache,mode=max' || '' }}
65
- outputs: ${{ (github.ref.name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/'))
+ outputs: ${{ (github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/'))
66
&& 'type=registry' || 'type=docker,dest=/tmp/tutorial-container.tar' }}
67
68
- name: Upload container as artifact for PRs
0 commit comments