mirror of
https://github.com/flant/ovpn-admin.git
synced 2025-12-15 21:16:14 -08:00
Migrate to jq
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
parent
0ba9eba9ba
commit
a6baacd57f
7
.github/workflows/publish-tag.yaml
vendored
7
.github/workflows/publish-tag.yaml
vendored
@ -46,7 +46,12 @@ jobs:
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: |
|
||||
source "$(werf ci-env github --as-file)"
|
||||
source <(jq -r '.labels | to_entries | to_entries[] | "WERF_EXPORT_ADD_LABEL_\(.key)=\(.value.key)=\(.value.value)"' <<< $DOCKER_METADATA_OUTPUT_JSON)
|
||||
for l in $(jq -r '.labels | to_entries | to_entries[] | "WERF_EXPORT_ADD_LABEL_\(.key)=\(.value.key)=\(.value.value)"' <<< $DOCKER_METADATA_OUTPUT_JSON); do
|
||||
echo "export $l"
|
||||
export $l
|
||||
done
|
||||
|
||||
env
|
||||
werf build
|
||||
|
||||
# with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user