File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 44
44
# Generate Docker tags based on the following events/attributes
45
45
tags : |
46
46
type=schedule,pattern=nightly
47
- type=ref,event=tag
47
+ type=ref,event=pr
48
+ type=semver,pattern={{version}}
49
+ type=semver,pattern={{major}}.{{minor}}
48
50
-
49
51
name : Inspect meta
50
52
run : |
75
77
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
76
78
-
77
79
name : Login to GHCR
78
- if : github.event_name != 'pull_request'
79
80
uses : docker/login-action@v2
80
81
with :
81
82
registry : ghcr.io
90
91
platforms : linux/amd64,linux/arm64,linux/arm/v7
91
92
tags : ${{ steps.meta.outputs.tags }}
92
93
labels : ${{ steps.meta.outputs.labels }}
93
- push : ${{ github.event_name != 'pull_request' }}
94
+ push : true
94
95
cache-from : type=local,src=/tmp/.buildx-cache
95
96
cache-to : type=local,dest=/tmp/.buildx-cache-new
96
97
Original file line number Diff line number Diff line change 44
44
# Generate Docker tags based on the following events/attributes
45
45
tags : |
46
46
type=schedule,pattern=nightly
47
- type=ref,event=tag
47
+ type=ref,event=pr
48
+ type=semver,pattern={{version}}
49
+ type=semver,pattern={{major}}.{{minor}}
48
50
-
49
51
name : Inspect meta
50
52
run : |
75
77
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
76
78
-
77
79
name : Login to GHCR
78
- if : github.event_name != 'pull_request'
79
80
uses : docker/login-action@v2
80
81
with :
81
82
registry : ghcr.io
90
91
platforms : linux/amd64,linux/arm64,linux/arm/v7
91
92
tags : ${{ steps.meta.outputs.tags }}
92
93
labels : ${{ steps.meta.outputs.labels }}
93
- push : ${{ github.event_name != 'pull_request' }}
94
+ push : true
94
95
cache-from : type=local,src=/tmp/.buildx-cache
95
96
cache-to : type=local,dest=/tmp/.buildx-cache-new
96
97
You can’t perform that action at this time.
0 commit comments