ci: Docker - Prefer dist-local
stage
#2771
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Changes the Alpine
Dockerfile
to also default todist-local
stage as the final image output, like the openSUSE LeapDockerfile
already does. Thedist-git
stage remains for now as opt-in, but I'm not sure if it has any notable advantage to any potential users, perhaps drop it in the 3.3 release series?This will affect anyone relying on the
dist-git
default target (which recently had a breaking change ofBUILD_VERSION
=>GIT_BRANCH
build arg), they would now need to also be explicit about the--target
stage when building. However just like mentioned in #2769 there is an alternative without--target
that works effectively the same withdist-local
:docker build --tag localhost/testssl.sh:3.2 https://github.com/testssl/testssl.sh.git#3.2 # Alpine variant requires `--file`: docker build \ --tag localhost/testssl.sh:3.2-alpine \ --file https://raw.githubusercontent.com/testssl/testssl.sh/3.2/Dockerfile-alpine \ https://github.com/testssl/testssl.sh.git#3.2
Resolves: #2769
Closes: #2770
What is your pull request about?