-
Notifications
You must be signed in to change notification settings - Fork 160
Refactor dockerfile and entrypoint script #41
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
Conversation
- 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* 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 <[email protected]>)
* 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 <[email protected]>)
* 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 <[email protected]>)
* 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 <[email protected]>)
* Refactor dockerfile and entrypoint script Re-add changes done in convictional#41 * Add GitHub Actions Workflow to build and selftest * Use -r with jq when fetching run ids * Remove unused input variable * Make testing example in README use same parameter order as documentation * Restore lost changes from convictional#41 * 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 <[email protected]>) * bump README to 1.6.1 * Github actions rework (convictional#50) * dummy change to test PR gha * allow test to be run * remove docker requirement, split out self-test * remove last_workflow_interval * Change action workflow to use project token (convictional#51) * Change action workflow to use project token * use personal access key * Expose Conclusion as an action output (convictional#58) Add conclusion output to yaml * Update action.yml * action: add option to post the workflow URL (convictional#57) as a comment to a configurable comments API URL. For instance when having very long running workflows called by the action, it's hard for the user to see the actual pipeline and its results. For better tracebility and user expierence post the link to the acquired workflow URL as a comment. Typical setting would be to set it to ${{ github.event.pull_request.comments_url }} for pull requests. As this may not be wanted by all users set the default to empty, meaning no comments will be made * entrypoint.sh: ignore Server Error responses (convictional#56) as these are temporary problems it's safe to assume that retrying it at a later point resolve the issue Closes convictional#55 * The `set-output` command is deprecated (convictional#63) The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * escape wait_interval on line 87 (convictional#69) * GA trigger test (convictional#71) * Revert "GA trigger test (convictional#71)" (convictional#72) This reverts commit 72beacf. * Utilize the auto generated github token for comments (convictional#74) * feat: use autogenerated github token for pull_request comments * update secret token usage Co-authored-by: Gaetan BOGAERT <[email protected]> --------- Co-authored-by: duhow <[email protected]> Co-authored-by: Neil Mayhew <[email protected]> Co-authored-by: Rabih Salamey <[email protected]> Co-authored-by: Daniel Phillips <[email protected]> Co-authored-by: Konrad Weihmann <[email protected]> Co-authored-by: Grzegorz Faryna <[email protected]> Co-authored-by: b8fd286fcb585385 <[email protected]> Co-authored-by: Gaetan BOGAERT <[email protected]>
For Dockerfile:
For entrypoint: