mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-07-01 14:38:05 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
bd7347b42c | |||
cfbef2aedb | |||
8436dfe8a0 |
@ -12,6 +12,9 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- stage: test
|
- stage: test
|
||||||
script:
|
script:
|
||||||
|
# Travis gets rate limited by Docker HUB.
|
||||||
|
- |
|
||||||
|
[[ -n $DOCKER_PASSWORD && -n $DOCKER_USERNAME ]] && echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
- git ls-files --exclude='*Dockerfile' --ignored | xargs --max-lines=1 -I{} sh -c 'docker run --rm -i -v ${PWD}/.hadolint.yaml:/.hadolint.yaml hadolint/hadolint < "$1"' -- {}
|
- git ls-files --exclude='*Dockerfile' --ignored | xargs --max-lines=1 -I{} sh -c 'docker run --rm -i -v ${PWD}/.hadolint.yaml:/.hadolint.yaml hadolint/hadolint < "$1"' -- {}
|
||||||
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
|
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
|
||||||
|
|
||||||
|
5
build.sh
5
build.sh
@ -47,6 +47,11 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Travis gets rate limited by Docker HUB.
|
||||||
|
if [[ ${CI:-} == true && -n $DOCKER_PASSWORD && -n $DOCKER_USERNAME ]]; then
|
||||||
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2068
|
# shellcheck disable=SC2068
|
||||||
eval docker build . ${TAGS[@]:-}
|
eval docker build . ${TAGS[@]:-}
|
||||||
docker images
|
docker images
|
||||||
|
Reference in New Issue
Block a user