-
Notifications
You must be signed in to change notification settings - Fork 21
docker: Use openSUSE Leap as a base image for all stages #101
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
447c47e to
a22d733
Compare
30897db to
0cc5e4b
Compare
| ghcr.io/rancher-sandbox/lockc:latest | ||
| - | ||
| name: Retrieve pull request number | ||
| if: ${{ startsWith(github.ref, 'refs/pull/') }} |
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.
@nickgerace I have an explanation for those if statements now.
So, this whole file is triggered by many events which are mutual exclusive when it comes to pushing images. We trigger this workflow on:
- push to
mainbranch (merging a PR) (github.refisrefs/heads/*) - creating a tag (
github.refisrefs/tags/*) - submitting a pull request (
github.refisrefs/pull/*)
For all of those actions we want to build an image, but we want to push it differently. To handle then differently, we need to catch them with if statements.
That's why we do:
if: ${{ startsWith(github.ref, 'refs/pull/') }}if: ${{ startsWith(github.ref, 'refs/heads/') }}if: ${{ startsWith(github.ref, 'refs/tags/') }}
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.
thanks for the explanation!
We had problems with building based on the official Rust image, based on Debian. It's more convenient if we just stick to openSUSE and manage all dependencies ourselves. Signed-off-by: Michal Rostecki <[email protected]>
29fcfa6 to
21593a1
Compare
This change adds container builds for pull requests. For two reasons: 1) In case of failures on the main branch, to check whether a pull request aiming to fix them really fixes them. 2) Might be nice for testing someones' changes before merging, without necessity to check out and build their code. Signed-off-by: Michal Rostecki <[email protected]>
21593a1 to
1399d36
Compare
mjura
left a comment
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
We had problems with building based on the official Rust image, based on
Debian. It's more convenient if we just stick to openSUSE and manage all
dependencies ourselves.
This PR also adds container builds for pull requests. For two reasons: