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

Refactor dockerfile and entrypoint script #41

Merged
merged 2 commits into from Mar 9, 2022

Conversation

duhow
Copy link
Contributor

@duhow duhow commented Jan 19, 2022

For Dockerfile:

  • Use static version instead of latest
  • Perform actions in a single layer

For entrypoint:

  • Run jq with compact output
  • Fail if cannot call dispatch function

- Use static version instead of latest
- Perform actions in a single layer
- Run jq with compact output
- Fail if cannot call dispatch function
@@ -82,6 +82,11 @@ validate_args() {
fi
}

lets_wait() {
echo "Sleeping for ${wait_interval} seconds"
sleep $wait_interval
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a fix I think. Compare it to line 127

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what exactly does need to be changed? code is in two sections, one has quotes, other does not, both work the same.

Copy link
Contributor

@keithconvictional keithconvictional left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@keithconvictional keithconvictional merged commit d2b75f3 into convictional:master Mar 9, 2022
duhow added a commit to duhow/trigger-workflow-and-wait that referenced this pull request Mar 9, 2022
neilmayhew added a commit to neilmayhew/trigger-workflow-and-wait that referenced this pull request Mar 14, 2022
* Combine layers in Docker image
* Use -c with jq when formatting client_payloads
* Refactor waiting into a common function

Originally authored by @duhow (David Girón <contacto@duhowpi.net>)
neilmayhew added a commit to neilmayhew/trigger-workflow-and-wait that referenced this pull request Mar 14, 2022
* Combine layers in Docker image
* Use -c with jq when formatting client_payloads
* Refactor waiting into a common function

Originally authored by @duhow (David Girón <contacto@duhowpi.net>)
neilmayhew added a commit to neilmayhew/trigger-workflow-and-wait that referenced this pull request Mar 14, 2022
* Combine layers in Docker image
* Use -c with jq when formatting client_payloads
* Refactor waiting into a common function

Originally authored by @duhow (David Girón <contacto@duhowpi.net>)
neilmayhew added a commit to neilmayhew/trigger-workflow-and-wait that referenced this pull request Mar 14, 2022
* Combine layers in Docker image
* Use -c with jq when formatting client_payloads
* Refactor waiting into a common function

Originally authored by @duhow (David Girón <contacto@duhowpi.net>)
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

3 participants