Skip to content

Commit

Permalink
Specify the yq eval command for compat with older versions
Browse files Browse the repository at this point in the history
The eval command was not always the default in yq.

Change-type: patch
Signed-off-by: Kyle Harding <[email protected]>
  • Loading branch information
klutchell authored and ab77 committed Mar 28, 2024
1 parent 6049f46 commit 5fbec5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/flowzone.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2162,15 +2162,15 @@ jobs:
if [ ! -f .env ]
then
yq '.services.*.env_file |= map(with(select(. == ".env") ; . = "${{ env.COMPOSE_ENV_FILE }}"))' -i "${file}"
yq e '.services.*.env_file |= map(with(select(. == ".env") ; . = "${{ env.COMPOSE_ENV_FILE }}"))' -i "${file}"
fi
done
touch ${COMPOSE_ENV_FILE}
docker compose --env-file="${COMPOSE_ENV_FILE}" --project-directory="$(pwd)" ${args} config > "${COMPOSE_FILE}"
yq '(.services.* | select(.build != null)).platform |= "${{ matrix.platform }}"' -i "${COMPOSE_FILE}"
yq . "${COMPOSE_FILE}"
yq e '(.services.* | select(.build != null)).platform |= "${{ matrix.platform }}"' -i "${COMPOSE_FILE}"
yq e . "${COMPOSE_FILE}"
- *dockerTestMetadata
- *dockerCacheFromMetadata
Expand Down

0 comments on commit 5fbec5b

Please sign in to comment.