-
Notifications
You must be signed in to change notification settings - Fork 17
re-usable workflow and calling script #259
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
base: devel
Are you sure you want to change the base?
Conversation
The reusable workflow Put the triggers instead in the calling workflow. In there, we can remove the push triggers, I added these temporarily when trouble-shooting the workflow earlier, to avoid opening lots of PRs. So instead of current L3-7, I think we want:
As the the calling workflow is responsible for defining what triggers it, I think we can simplify things a lot by removing the Finally, we don't want to hard-code using the devel version of the reusuable workflow as this should also work on main (i.e., we should use the devel reusable workflow on the devel branch and the main reusuable workflow on the main branch). So on L14 we want:
|
I've made most of those changes and it has built the container in testing. The one thing that I am struggling with is the change The discussion at https://github.com/orgs/community/discussions/45342 says that the uses keyword needs a literal name for the reference, sha, or version: I have put in an if statement to check the branch to avoid having a reference to a local version of the workflow. This does mean that we need to have the workflows in main as well or the action fails. |
Oh okay, that is a bit tricky. But from this last comment: https://github.com/orgs/community/discussions/45342#discussioncomment-13416453, it seems we can skip the |
Oh, that will work. Just means that the workflow will not be limited to main or devel, but maybe that is not so much of an issue? |
That shouldn't be an issue as we are already restricted the triggers to the main and devel branch. |
Okay. I'll crack on with the manifest part of #252. Just wanted to ensure I had not opened anything that ought not to be open. |
This PR has two files: call_jobs.yml that calls the reusable workflows and reuse-build-publish-amd.yml that creates a workflow to build an amd container. This is in response to part of issue #252 .