mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-08 11:46:19 +08:00
Add multi-architecture Docker image build
* Adds a shell script with functions to install multi-architecture docker support, as well as build, deploy, and test the shellcheck docker images for the same set of architectures for which binaries were already built and deployed as tarballs. * Hooks up the multi-architecture docker build, deploy, and test to the existing Travis CI/CD pipeline. It is organized as a separate stage which only runs if all previous steps in the already existing test stage succeed.
This commit is contained in:
@@ -19,12 +19,6 @@ build_linux() {
|
||||
do
|
||||
cp "shellcheck" "deploy/shellcheck-$tag.linux-x86_64";
|
||||
done
|
||||
|
||||
# Linux Alpine based Docker image
|
||||
name="$DOCKER_BASE-alpine"
|
||||
DOCKER_BUILDS="$DOCKER_BUILDS $name"
|
||||
docker build -f Dockerfile -t "$name:current" --target alpine .
|
||||
docker run "$name:current" sh -c 'shellcheck --version'
|
||||
}
|
||||
|
||||
build_aarch64() {
|
||||
|
Reference in New Issue
Block a user