mirror of
https://github.com/flant/ovpn-admin.git
synced 2025-12-16 13:26:15 -08:00
Migrate to jq
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
parent
79ae6270d2
commit
0ba9eba9ba
3
.github/workflows/publish-tag.yaml
vendored
3
.github/workflows/publish-tag.yaml
vendored
@ -36,7 +36,6 @@ jobs:
|
|||||||
# Extract metadata (tags, labels) for Docker
|
# Extract metadata (tags, labels) for Docker
|
||||||
# https://github.com/docker/metadata-action
|
# https://github.com/docker/metadata-action
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5.6.1
|
uses: docker/metadata-action@v5.6.1
|
||||||
with:
|
with:
|
||||||
images: ghcr.io/${{ github.repository }}/${{ matrix.name }}
|
images: ghcr.io/${{ github.repository }}/${{ matrix.name }}
|
||||||
@ -47,7 +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)"
|
||||||
source <(echo "$DOCKER_METADATA_OUTPUT_LABELS" | awk '{print "export WERF_EXPORT_ADD_LABEL_" NR "=" $0}')
|
source <(jq -r '.labels | to_entries | to_entries[] | "WERF_EXPORT_ADD_LABEL_\(.key)=\(.value.key)=\(.value.value)"' <<< $DOCKER_METADATA_OUTPUT_JSON)
|
||||||
werf build
|
werf build
|
||||||
|
|
||||||
# with:
|
# with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user