-
-
Notifications
You must be signed in to change notification settings - Fork 922
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
ci: updates for build-container action #1642
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
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.
Review completed. No issues found.
Quality Gate passedIssues Measures |
The concurrency change will likely have unintended side-effects: Here we have a single file for PRs and Repo publishing, when there are fast merges not all builds will be published to the repo. That's not intended, the repo should contain all builds. |
The concurrency criteria includes the PR: |
Yes I understand that, but this job is special: It does not only run on PRs, but also on master (with the additional step of publishing the container to the repo). So what will happen when 2 PRs are quickly merged into master? Will the second one cancel the first one? Or do they run one after the other? |
This updates the action versions to resolve the following warning:
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, docker/setup-qemu-action@v2, docker/setup-buildx-action@v2, docker/login-action@v2, docker/metadata-action@v4, docker/build-push-action@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
It also adds concurrency so build runs are cancelled if the PR is force-push updated before they complete, and it renames the file from .yaml to .yml for consistency with other actions.