Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Issue with rendering of post_build_commands #119

Open
szEvEz opened this issue Dec 20, 2023 · 0 comments
Open

[Bug] Issue with rendering of post_build_commands #119

szEvEz opened this issue Dec 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@szEvEz
Copy link

szEvEz commented Dec 20, 2023

Description

To work-around #118, I've tried to manually download a requirements.yml from a remote url and install it via manually calling ansible-galaxy.
But I was not able to render a working Dockerfile.

The render process transforms my command to a $.

> [12/12] RUN if [ -n "${POST_BUILD_COMMANDS}" ]; then       IFS=';' &&       for POST_BUILD_COMMAND in "${POST_BUILD_COMMANDS[@]}"; do         echo "${POST_BUILD_COMMANDS[@]}" &&         echo "${POST_BUILD_COMMAND}" &&         bash -c "${POST_BUILD_COMMAND}";       done     fi:                                                                                                                                                                                                                                                                                                                                                                                     
0.453 $;ansible-galaxy install -r requirements.yml --force;
0.455 bash: line 1: $: command not found

I've also tried quoting, escaping and whatnot.

Reproduction steps

post_build_commands:
  - curl --header PRIVATE-TOKEN: $TOKEN $URL
  - ansible-galaxy install -r requirements.yml --force

Current Behavior

ARG POST_BUILD_COMMANDS="$;ansible-galaxy install -r requirements.yml --force;"

Expected Behavior

Command is rendered properly.

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant