@@ -27,15 +27,15 @@ jobs:
27
27
password : ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
28
28
29
29
- name : Gather Tags and Labels (Release)
30
- id : meta
30
+ id : meta_release
31
31
32
32
with :
33
33
images : glossawy/rss-feed-editor
34
34
tags : type=match,pattern=\d.\d,group=0
35
35
if : ${{ github.event_name == 'release' }}
36
36
37
37
- name : Gather Tags and Labels (Push)
38
- id : meta
38
+ id : meta_push
39
39
40
40
with :
41
41
images : glossawy/rss-feed-editor
52
52
context : .
53
53
platforms : linux/arm64,linux/amd64
54
54
push : true
55
- tags : ${{ steps.meta .outputs.tags }}
56
- labels : ${{ steps.meta .outputs.labels }}
55
+ tags : ${{ steps.meta_release.outputs.tags || steps.meta_push .outputs.tags }}
56
+ labels : ${{ steps.meta_release.outputs.labels || steps.meta_push .outputs.labels }}
57
57
58
58
push_frontend :
59
59
name : Push Frontend Docker image to Docker Hub
@@ -69,15 +69,15 @@ jobs:
69
69
password : ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
70
70
71
71
- name : Gather Tags and Labels (Release)
72
- id : meta
72
+ id : meta_release
73
73
74
74
with :
75
75
images : glossawy/rss-feed-editor-frontend
76
76
tags : type=match,pattern=\d.\d,group=0
77
77
if : ${{ github.event_name == 'release' }}
78
78
79
79
- name : Gather Tags and Labels (Push)
80
- id : meta
80
+ id : meta_push
81
81
82
82
with :
83
83
images : glossawy/rss-feed-editor-frontend
94
94
context : .
95
95
platforms : linux/arm64,linux/amd64
96
96
push : true
97
- tags : ${{ steps.meta .outputs.tags }}
98
- labels : ${{ steps.meta .outputs.labels }}
97
+ tags : ${{ steps.meta_release.outputs.tags || steps.meta_push .outputs.tags }}
98
+ labels : ${{ steps.meta_release.outputs.labels || steps.meta_push .outputs.labels }}
0 commit comments