-
Notifications
You must be signed in to change notification settings - Fork 192
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
Trigger AWS runs via tower API #1160
Conversation
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.
Looks good to me, but that doesn't mean anything as I don't know much about AWS 😁 so maybe another review would be good
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.
Looks sensible.
I don't seem to be able to properly understand the tower api docs, but possibly it might be worth making the effort to supply a proper dateCreated
(alternatively if it's not mandatory, remove)?
Maybe should add that I don't really know tower either, but if it works, it works (for clarity; I haven't tested). I'm also a bit curious about the style with supplying the |
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.
Looks great! I feel like this might be a golden opportunity to create a dedicated GitHub Action for launching Tower though. I'm going to have a quick play to see if I can come up with something if that's ok..
Yes that has to do with the Tower API, nothing I can change here |
"paramsText" : "{\"outdir\":\"s3://'"${AWS_S3_BUCKET}"'/{{ short_name }}/results-'"${GITHUB_SHA}"'\"}", | ||
"revision" : "'"${GITHUB_SHA}"'", |
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.
How come some of these are quoted with "'"
and some are not?
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.
Ah it's because env variables don't get into single-quoted strings, but you need that to avoid having to escape every "
. Ok, lesser of evils maybe!
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.
yeah I played with different options on how to do proper escaping and variable setting, and that's the only option that was working for me
Ok so can hopefully now used this: https://github.com/marketplace/actions/tower-action I took what you had here and wrapped it up into an action so that it's a little bit friendlier for pipeline devs to edit 😀 |
I've updated the actions to use the |
PR checklist
CHANGELOG.md
is updateddocs
is updated