|
38 | 38 | input: .github/config.yml |
39 | 39 | input-format: yaml-path |
40 | 40 | filter: | |
41 | | - . |
| 41 | + {debian: .debian.ci, ubuntu: .ubuntu.ci} |
42 | 42 | - uses: envoyproxy/toolshed/gh-actions/[email protected] |
43 | 43 | id: torun |
44 | 44 | with: |
@@ -137,122 +137,31 @@ jobs: |
137 | 137 | id: config-debian |
138 | 138 | uses: envoyproxy/toolshed/gh-actions/[email protected] |
139 | 139 | with: |
140 | | - input-format: yaml |
| 140 | + input: .github/config.yml |
| 141 | + input-format: yaml-path |
141 | 142 | filter: >- |
142 | | - {manifests: .} |
143 | | - input: | |
144 | | - - name: envoy-build |
145 | | - tag: devtools-${{ steps.docker-sha.outputs.sha }} |
146 | | - registry: docker.io/envoyproxy |
147 | | - architectures: |
148 | | - - amd64 |
149 | | - - arm64 |
150 | | - artifact-pattern: oci-debian-{arch}/debian-devtools-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
151 | | - - name: envoy-build |
152 | | - tag: ci-${{ steps.docker-sha.outputs.sha }} |
153 | | - registry: docker.io/envoyproxy |
154 | | - architectures: |
155 | | - - amd64 |
156 | | - - arm64 |
157 | | - artifact-pattern: oci-debian-{arch}/debian-ci-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
158 | | - - name: envoy-build |
159 | | - tag: worker-${{ steps.docker-sha.outputs.sha }} |
160 | | - registry: docker.io/envoyproxy |
161 | | - architectures: |
162 | | - - amd64 |
163 | | - - arm64 |
164 | | - artifact-pattern: oci-debian-{arch}/debian-worker-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
165 | | - - name: envoy-build |
166 | | - tag: worker-${{ steps.docker-sha.outputs.sha }} |
167 | | - registry: gcr.io/envoy-ci |
168 | | - architectures: |
169 | | - - amd64 |
170 | | - - arm64 |
171 | | - artifact-pattern: oci-debian-{arch}/debian-worker-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
172 | | - - name: envoy-build |
173 | | - tag: gcc-${{ steps.docker-sha.outputs.sha }} |
174 | | - registry: docker.io/envoyproxy |
175 | | - architectures: |
176 | | - - amd64 |
177 | | - - arm64 |
178 | | - artifact-pattern: oci-debian-{arch}/debian-gcc-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
179 | | - - name: envoy-build |
180 | | - tag: gcc-${{ steps.docker-sha.outputs.sha }} |
181 | | - registry: gcr.io/envoy-ci |
182 | | - architectures: |
183 | | - - amd64 |
184 | | - - arm64 |
185 | | - artifact-pattern: oci-debian-{arch}/debian-gcc-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
186 | | - - name: envoy-build |
187 | | - tag: docker-${{ steps.docker-sha.outputs.sha }} |
188 | | - registry: docker.io/envoyproxy |
189 | | - architectures: |
190 | | - - amd64 |
191 | | - - arm64 |
192 | | - artifact-pattern: oci-debian-{arch}/debian-docker-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
193 | | - - name: envoy-build |
194 | | - tag: test-${{ steps.docker-sha.outputs.sha }} |
195 | | - registry: docker.io/envoyproxy |
196 | | - architectures: |
197 | | - - amd64 |
198 | | - - arm64 |
199 | | - artifact-pattern: oci-debian-{arch}/debian-test-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
200 | | - - name: envoy-build |
201 | | - tag: llvm-${{ steps.docker-sha.outputs.sha }} |
202 | | - registry: docker.io/envoyproxy |
203 | | - architectures: |
204 | | - - amd64 |
205 | | - artifact-pattern: oci-debian-{arch}/debian-llvm-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
206 | | - - name: envoy-build |
207 | | - tag: mobile-${{ steps.docker-sha.outputs.sha }} |
208 | | - registry: docker.io/envoyproxy |
209 | | - architectures: |
210 | | - - amd64 |
211 | | - artifact-pattern: oci-debian-{arch}/debian-mobile-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
| 143 | + .debian.manifests |
| 144 | + | map(. + { |
| 145 | + tag: (.tag | gsub("{sha}"; "${{ steps.docker-sha.outputs.sha }}")), |
| 146 | + "artifact-pattern": (.["artifact-pattern"] | gsub("{sha}"; "${{ steps.docker-sha.outputs.sha }}")), |
| 147 | + "additional-tags": (if .["additional-tags"] then .["additional-tags"] | map(gsub("{sha}"; "${{ steps.docker-sha.outputs.sha }}")) else null end) |
| 148 | + }) |
| 149 | + | {manifests: .} |
212 | 150 | - name: Generate manifest configuration (Ubuntu) |
213 | 151 | if: steps.built-distros.outputs.include-ubuntu == 'true' |
214 | 152 | id: config-ubuntu |
215 | 153 | uses: envoyproxy/toolshed/gh-actions/[email protected] |
216 | 154 | with: |
217 | | - input-format: yaml |
| 155 | + input: .github/config.yml |
| 156 | + input-format: yaml-path |
218 | 157 | filter: >- |
219 | | - {manifests: .} |
220 | | - input: | |
221 | | - - name: envoy-build-ubuntu |
222 | | - tag: ci-${{ steps.docker-sha.outputs.sha }} |
223 | | - registry: docker.io/envoyproxy |
224 | | - architectures: |
225 | | - - arm64 |
226 | | - - amd64 |
227 | | - artifact-pattern: oci-ubuntu-{arch}/ubuntu-ci-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
228 | | - - name: envoy-build-ubuntu |
229 | | - tag: mobile-${{ steps.docker-sha.outputs.sha }} |
230 | | - registry: docker.io/envoyproxy |
231 | | - architectures: |
232 | | - - amd64 |
233 | | - artifact-pattern: oci-ubuntu-{arch}/ubuntu-mobile-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
234 | | - - name: envoy-build-ubuntu |
235 | | - tag: test-${{ steps.docker-sha.outputs.sha }} |
236 | | - registry: docker.io/envoyproxy |
237 | | - architectures: |
238 | | - - amd64 |
239 | | - artifact-pattern: oci-ubuntu-{arch}/ubuntu-test-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
240 | | - - name: envoy-build-ubuntu |
241 | | - tag: full-f8d1fd9bdac3a7843d1e69816456648989d238be |
242 | | - registry: docker.io/envoyproxy |
243 | | - architectures: |
244 | | - - amd64 |
245 | | - - arm64 |
246 | | - artifact-pattern: oci-ubuntu-{arch}/ubuntu-full-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
247 | | - additional-tags: |
248 | | - - ${{ steps.docker-sha.outputs.sha }} |
249 | | - - name: envoy-build |
250 | | - tag: ${{ steps.docker-sha.outputs.sha }} |
251 | | - registry: gcr.io/envoy-ci |
252 | | - architectures: |
253 | | - - amd64 |
254 | | - - arm64 |
255 | | - artifact-pattern: oci-ubuntu-{arch}/ubuntu-full-${{ steps.docker-sha.outputs.sha }}-{arch}.tar |
| 158 | + .ubuntu.manifests |
| 159 | + | map(. + { |
| 160 | + tag: (.tag | gsub("{sha}"; "${{ steps.docker-sha.outputs.sha }}")), |
| 161 | + "artifact-pattern": (.["artifact-pattern"] | gsub("{sha}"; "${{ steps.docker-sha.outputs.sha }}")), |
| 162 | + "additional-tags": (if .["additional-tags"] then .["additional-tags"] | map(gsub("{sha}"; "${{ steps.docker-sha.outputs.sha }}")) else null end) |
| 163 | + }) |
| 164 | + | {manifests: .} |
256 | 165 | - name: Merge manifest configurations |
257 | 166 | id: config |
258 | 167 | if: >- |
|
0 commit comments