mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-25 18:38:22 +01:00
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
dist: xenial
|
|
language: bash
|
|
services:
|
|
- docker
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- jq
|
|
|
|
jobs:
|
|
include:
|
|
- stage: test
|
|
script:
|
|
- 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'
|
|
|
|
- &build
|
|
stage: Build & update Docker HUB description
|
|
env: VERSION_SHORT=0.18 EXTRA_TAG=latest
|
|
script:
|
|
- ./build.sh $VERSION_SHORT
|
|
- <<: *build
|
|
env: VERSION_SHORT=0.17 EXTRA_TAG=stable
|
|
- <<: *build
|
|
env: VERSION_SHORT=0.16
|
|
- <<: *build
|
|
env: VERSION_SHORT=0.15
|
|
- <<: *build
|
|
env: VERSION_SHORT=0.14
|
|
- <<: *build
|
|
if: branch = master AND type != pull_request
|
|
env:
|
|
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
|