Skip to content

Commit ea45ca7

Browse files
author
Felipe Almeida Baccaro
committed
fixing jq command docker-image.yml.
1 parent 741a6a8 commit ea45ca7

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
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-22.04
99
steps:
1010
- run: |
11-
jq -r 'map(select('.build == true')).\[\] | .stages\[\] as $stage | "docker build --no-cache --target \($stage) -t \(.namespace)/\(.name):\(.tag)-\($stage|ascii_downcase) ./\(.path)" | split("\n") | .\[\]' versions.json | while read -r image; do
11+
jq -r 'map(\"select(.build == true)\").\[\] | .stages\[\] as $stage | \"docker build --no-cache --target \($stage) -t \(.namespace)/\(.name):\(.tag)-\($stage|ascii_downcase) ./\(.path)\" | split(\"\n\") | .\[\]' versions.json | while read -r image; do
1212
$($image)
1313
done
1414
docker_login:
@@ -25,6 +25,6 @@ jobs:
2525
runs-on: ubuntu-22.04
2626
steps:
2727
- run: |
28-
jq -r 'map(select(.build == true and .push == true)).\[\] | .stages\[\] as $stage | "docker push \(.namespace)/\(.name):\(.tag)-\($stage|ascii_downcase) " | split("\n") | .\[\]' versions.json | while read -r image; do
28+
jq -r 'map(\"select(.build == true and .push == true)\").\[\] | .stages\[\] as $stage | \"docker push \(.namespace)/\(.name):\(.tag)-\($stage|ascii_downcase)\" | split(\"\n\") | .\[\]' versions.json | while read -r image; do
2929
$($image)
3030
done

0 commit comments

Comments
 (0)