mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-10 12:47:24 +01:00
Combine stages for faster pipeline
This commit is contained in:
parent
d667a247e1
commit
4e4810aea3
@ -16,12 +16,8 @@ jobs:
|
|||||||
- 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'
|
||||||
|
|
||||||
- stage: Update Docker HUB description
|
|
||||||
if: branch = master
|
|
||||||
script: docker run -v $PWD:/workspace -e DOCKERHUB_USERNAME=$DOCKER_USERNAME -e DOCKERHUB_PASSWORD=$DOCKER_PASSWORD -e DOCKERHUB_REPOSITORY='factoriotools/factorio' -e README_FILEPATH='/workspace/README.md' peterevans/dockerhub-description:2.1.0
|
|
||||||
|
|
||||||
- &build
|
- &build
|
||||||
stage: build
|
stage: Build & update Docker HUB description
|
||||||
env: VERSION_SHORT=0.17 EXTRA_TAG=latest STABLE=0.17.79
|
env: VERSION_SHORT=0.17 EXTRA_TAG=latest STABLE=0.17.79
|
||||||
script:
|
script:
|
||||||
- ./build.sh $VERSION_SHORT
|
- ./build.sh $VERSION_SHORT
|
||||||
@ -31,3 +27,5 @@ jobs:
|
|||||||
env: VERSION_SHORT=0.15
|
env: VERSION_SHORT=0.15
|
||||||
- <<: *build
|
- <<: *build
|
||||||
env: VERSION_SHORT=0.14
|
env: VERSION_SHORT=0.14
|
||||||
|
- if: branch = master
|
||||||
|
script: docker run -v $PWD:/workspace -e DOCKERHUB_USERNAME=$DOCKER_USERNAME -e DOCKERHUB_PASSWORD=$DOCKER_PASSWORD -e DOCKERHUB_REPOSITORY='factoriotools/factorio' -e README_FILEPATH='/workspace/README.md' peterevans/dockerhub-description:2.1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user