We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2f60fc7 + a9d7e0d commit cb34167Copy full SHA for cb34167
1 file changed
.github/workflows/docker.yml
@@ -3,6 +3,8 @@ on:
3
push:
4
branches: [main]
5
tags: ['v*']
6
+ pull_request:
7
+ branches: [main]
8
9
jobs:
10
build-and-push:
@@ -33,12 +35,13 @@ jobs:
33
35
type=semver,pattern={{major}}
34
36
type=sha,prefix=sha-
37
type=raw,value=latest,enable={{is_default_branch}}
38
+ type=ref,event=pr
39
40
- name: Build and push
41
uses: docker/build-push-action@v6
42
with:
43
context: .
- push: true
44
+ push: ${{ github.event_name != 'pull_request' }}
45
tags: ${{ steps.meta.outputs.tags }}
46
labels: ${{ steps.meta.outputs.labels }}
47
cache-from: type=gha
0 commit comments