We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e5ad1c commit eba6886Copy full SHA for eba6886
.github/workflows/docker.yml
@@ -97,7 +97,7 @@ jobs:
97
type=semver,pattern={{major}}.{{minor}}
98
type=semver,pattern={{major}}
99
type=sha
100
- type=raw,value=latest,enable={{is_default_branch}}
+ type=raw,value=latest,enable=${{ github.ref == format('refs/heads/main') }}
101
102
- name: Setup QEMU
103
uses: docker/setup-qemu-action@v3
@@ -110,6 +110,7 @@ jobs:
110
with:
111
context: .
112
file: ./${{ matrix.dockerfile }}
113
+ push: ${{ github.event_name != 'pull_request' }}
114
tags: ${{ steps.meta.outputs.tags }}
115
labels: ${{ steps.meta.outputs.labels }}
116
cache-from: type=registry,ref=${{ env.REGISTRY_URL }}/${{ env.REGISTRY_USER }}/${{ steps.image_name.outputs.IMAGE }}:buildcache
0 commit comments