@@ -2,9 +2,6 @@ name: docker-build-and-push
2
2
description : " "
3
3
4
4
inputs :
5
- name :
6
- description : " "
7
- required : true
8
5
platform :
9
6
description : " "
10
7
required : true
@@ -14,9 +11,6 @@ inputs:
14
11
build-args :
15
12
description : " "
16
13
required : false
17
- tag-suffix :
18
- description : " "
19
- required : false
20
14
dockerhub-token :
21
15
description : " "
22
16
required : true
@@ -45,19 +39,17 @@ runs:
45
39
with :
46
40
path : |
47
41
root-ccache
48
- key : ccache-${{ inputs.platform }}-${{ inputs.name }}-${{ hashFiles('src/**/*.cpp') }}
42
+ key : ccache-${{ inputs.platform }}-${{ hashFiles('src/**/*.cpp') }}
49
43
restore-keys : |
50
- ccache-${{ inputs.platform }}-${{ inputs.name }}-
51
44
ccache-${{ inputs.platform }}-
52
45
53
46
- name : Restore apt-get
54
47
uses : actions/cache/restore@v4
55
48
with :
56
49
path : |
57
50
var-cache-apt
58
- key : apt-get-${{ inputs.platform }}-${{ inputs.name }}-${{ hashFiles('src/**/package.xml') }}
51
+ key : apt-get-${{ inputs.platform }}-${{ hashFiles('src/**/package.xml') }}
59
52
restore-keys : |
60
- apt-get-${{ inputs.platform }}-${{ inputs.name }}-
61
53
apt-get-${{ inputs.platform }}-
62
54
63
55
- name : Inject cache into docker
81
73
with :
82
74
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
83
75
tags : |
84
- type=raw,value=base${{ inputs.tag-suffix }} -${{ inputs.platform }}
85
- type=raw,value=base${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
76
+ type=raw,value=base-${{ inputs.platform }}
77
+ type=raw,value=base-${{ steps.date.outputs.date }}-${{ inputs.platform }}
86
78
bake-target : docker-metadata-action-base
87
79
flavor : |
88
80
latest=false
93
85
with :
94
86
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
95
87
tags : |
96
- type=raw,value=core-devel${{ inputs.tag-suffix }} -${{ inputs.platform }}
97
- type=raw,value=core-devel${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
88
+ type=raw,value=core-devel-${{ inputs.platform }}
89
+ type=raw,value=core-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
98
90
bake-target : docker-metadata-action-core-devel
99
91
flavor : |
100
92
latest=false
105
97
with :
106
98
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
107
99
tags : |
108
- type=raw,value=universe-sensing-perception-devel${{ inputs.tag-suffix }} -${{ inputs.platform }}
109
- type=raw,value=universe-sensing-perception-devel${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
100
+ type=raw,value=universe-sensing-perception-devel-${{ inputs.platform }}
101
+ type=raw,value=universe-sensing-perception-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
110
102
bake-target : docker-metadata-action-universe-sensing-perception-devel
111
103
flavor : |
112
104
latest=false
@@ -117,8 +109,8 @@ runs:
117
109
with :
118
110
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
119
111
tags : |
120
- type=raw,value=universe-sensing-perception${{ inputs.tag-suffix }} -${{ inputs.platform }}
121
- type=raw,value=universe-sensing-perception${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
112
+ type=raw,value=universe-sensing-perception-${{ inputs.platform }}
113
+ type=raw,value=universe-sensing-perception-${{ steps.date.outputs.date }}-${{ inputs.platform }}
122
114
bake-target : docker-metadata-action-universe-sensing-perception
123
115
flavor : |
124
116
latest=false
@@ -129,8 +121,8 @@ runs:
129
121
with :
130
122
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
131
123
tags : |
132
- type=raw,value=universe-localization-mapping-devel${{ inputs.tag-suffix }} -${{ inputs.platform }}
133
- type=raw,value=universe-localization-mapping-devel${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
124
+ type=raw,value=universe-localization-mapping-devel-${{ inputs.platform }}
125
+ type=raw,value=universe-localization-mapping-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
134
126
bake-target : docker-metadata-action-universe-localization-mapping-devel
135
127
flavor : |
136
128
latest=false
@@ -141,8 +133,8 @@ runs:
141
133
with :
142
134
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
143
135
tags : |
144
- type=raw,value=universe-localization-mapping${{ inputs.tag-suffix }} -${{ inputs.platform }}
145
- type=raw,value=universe-localization-mapping${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
136
+ type=raw,value=universe-localization-mapping-${{ inputs.platform }}
137
+ type=raw,value=universe-localization-mapping-${{ steps.date.outputs.date }}-${{ inputs.platform }}
146
138
bake-target : docker-metadata-action-universe-localization-mapping
147
139
flavor : |
148
140
latest=false
@@ -153,8 +145,8 @@ runs:
153
145
with :
154
146
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
155
147
tags : |
156
- type=raw,value=universe-planning-control-devel${{ inputs.tag-suffix }} -${{ inputs.platform }}
157
- type=raw,value=universe-planning-control-devel${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
148
+ type=raw,value=universe-planning-control-devel-${{ inputs.platform }}
149
+ type=raw,value=universe-planning-control-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
158
150
bake-target : docker-metadata-action-universe-planning-control-devel
159
151
flavor : |
160
152
latest=false
@@ -165,8 +157,8 @@ runs:
165
157
with :
166
158
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
167
159
tags : |
168
- type=raw,value=universe-planning-control${{ inputs.tag-suffix }} -${{ inputs.platform }}
169
- type=raw,value=universe-planning-control${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
160
+ type=raw,value=universe-planning-control-${{ inputs.platform }}
161
+ type=raw,value=universe-planning-control-${{ steps.date.outputs.date }}-${{ inputs.platform }}
170
162
bake-target : docker-metadata-action-universe-planning-control
171
163
flavor : |
172
164
latest=false
@@ -177,8 +169,8 @@ runs:
177
169
with :
178
170
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
179
171
tags : |
180
- type=raw,value=universe-vehicle-system-devel${{ inputs.tag-suffix }} -${{ inputs.platform }}
181
- type=raw,value=universe-vehicle-system-devel${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
172
+ type=raw,value=universe-vehicle-system-devel-${{ inputs.platform }}
173
+ type=raw,value=universe-vehicle-system-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
182
174
bake-target : docker-metadata-action-universe-vehicle-system-devel
183
175
flavor : |
184
176
latest=false
@@ -189,8 +181,8 @@ runs:
189
181
with :
190
182
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
191
183
tags : |
192
- type=raw,value=universe-vehicle-system${{ inputs.tag-suffix }} -${{ inputs.platform }}
193
- type=raw,value=universe-vehicle-system${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
184
+ type=raw,value=universe-vehicle-system-${{ inputs.platform }}
185
+ type=raw,value=universe-vehicle-system-${{ steps.date.outputs.date }}-${{ inputs.platform }}
194
186
bake-target : docker-metadata-action-universe-vehicle-system
195
187
flavor : |
196
188
latest=false
@@ -201,8 +193,8 @@ runs:
201
193
with :
202
194
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
203
195
tags : |
204
- type=raw,value=universe-devel${{ inputs.tag-suffix }} -${{ inputs.platform }}
205
- type=raw,value=universe-devel${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
196
+ type=raw,value=universe-devel-${{ inputs.platform }}
197
+ type=raw,value=universe-devel-${{ steps.date.outputs.date }}-${{ inputs.platform }}
206
198
bake-target : docker-metadata-action-universe-devel
207
199
flavor : |
208
200
latest=false
@@ -213,8 +205,8 @@ runs:
213
205
with :
214
206
images : ${{ github.repository_owner }}/${{ inputs.bake-target }}
215
207
tags : |
216
- type=raw,value=universe${{ inputs.tag-suffix }} -${{ inputs.platform }}
217
- type=raw,value=universe${{ inputs.tag-suffix }} -${{ steps.date.outputs.date }}-${{ inputs.platform }}
208
+ type=raw,value=universe-${{ inputs.platform }}
209
+ type=raw,value=universe-${{ steps.date.outputs.date }}-${{ inputs.platform }}
218
210
bake-target : docker-metadata-action-universe
219
211
flavor : |
220
212
latest=auto
0 commit comments