Skip to content

Commit 548f1cf

Browse files
author
Felipe Almeida Baccaro
committed
dcarbone/install-jq-action github action.
1 parent 57af3c3 commit 548f1cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020
- name: "Build images"
2121
run: |
22-
jq -r 'map(select(.build == true)) | .[] | .stages[] as $stage | docker build --no-cache --target \($stage) -t \(.namespace)/\(.repository):\(.tag)-\($stage|ascii_downcase) ./\(.path) | split('\n') | .[]' versions.json | while read -r image; do $($image); done
22+
jq -r 'map(select(.build == true)) | .\[\] | .stages\[\] as $stage | docker build --no-cache --target \($stage) -t \(.namespace)/\(.repository):\(.tag)-\($stage|ascii_downcase) ./\(.path) | split('\n') | .\[\]' versions.json | while read -r image; do $($image); done
2323
- name: "Push Images"
2424
run: |
25-
jq -r 'map(select(.build == true and .push == true)) | .[] | .stages[] as $stage | docker push \(.namespace)/\(.repository):\(.tag)-\($stage|ascii_downcase) | split('\n') | .[]' versions.json | while read -r image; do $($image); done
25+
jq -r 'map(select(.build == true and .push == true)) | .\[\] | .stages\[\] as $stage | docker push \(.namespace)/\(.repository):\(.tag)-\($stage|ascii_downcase) | split('\n') | .\[\]' versions.json | while read -r image; do $($image); done

0 commit comments

Comments
 (0)