-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathaction.yml
More file actions
41 lines (37 loc) · 1.05 KB
/
action.yml
File metadata and controls
41 lines (37 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
inputs:
images:
type: string
required: true
env_prefix:
type: string
default: OUTPUT
outputs:
shas:
value: ${{ steps.images.outputs.value }}
runs:
using: composite
steps:
- uses: envoyproxy/toolshed/actions/jq@718038ba06daddeee163f264a77aa47b31a66779
id: yaml
with:
input: ${{ inputs.images }}
input-format: yaml
- uses: envoyproxy/toolshed/actions/foreach@718038ba06daddeee163f264a77aa47b31a66779
id: json_actions
with:
items: ${{ steps.yaml.outputs.value }}
steps: |
- uses: envoyproxy/toolshed/actions/docker/sha@718038ba06daddeee163f264a77aa47b31a66779
id: $KEY
with:
image: >-
%{{ fromJSON(inputs.context).items['$KEY'] }}
env_var: ${{ inputs.env_prefix }}_$KEY
- uses: envoyproxy/toolshed/actions/jq@718038ba06daddeee163f264a77aa47b31a66779
id: images
with:
input: ${{ steps.json_actions.outputs.out }}
filter: |
.
| fromjson
| with_entries({key: .key, value: .value.outputs.sha})