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

Allow docker container creation during run to also receive build options #235

Merged
merged 2 commits into from
Jul 7, 2020

Conversation

derekju
Copy link
Contributor

@derekju derekju commented Aug 20, 2019

I found it handy that I could define a step to run a command on a docker container without the pre-requisite of having that container pre-built already. However, the underlying docker-compose doesn't receive the same support for the plugin options that are only limited to the build run type.

I specifically wanted the ability to specify ARGS so I lifted the code from the build.sh command and dropped it in to the run command. This also allows for the --no-cache and --parallel options to be passed on as well.

My bash-fu isn't that great so not sure if there is a better way to DRY this up instead of copying & pasting but wanted to see if this was an acceptable idea.

@toolmantim
Copy link
Contributor

Thanks @derekju, and sorry for the delay. I added some tests, and updated the readme, and this is good to go 👍🏼

@toolmantim toolmantim merged commit ff8e41f into buildkite-plugins:master Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants