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