2019-05-02 17:28:20 +02:00
|
|
|
dist: xenial
|
|
|
|
sudo: required
|
|
|
|
language: bash
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- jq
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: test
|
|
|
|
script:
|
2019-05-16 19:23:07 +02:00
|
|
|
- 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"' -- {}
|
2019-05-02 17:28:20 +02:00
|
|
|
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
|
|
|
|
- &build
|
|
|
|
stage: build
|
2019-05-16 19:23:07 +02:00
|
|
|
env: VERSION_SHORT=0.17 EXTRA_TAG=latest
|
2019-05-02 17:28:20 +02:00
|
|
|
script:
|
2019-05-16 19:23:07 +02:00
|
|
|
- ./build.sh $VERSION_SHORT
|
2019-05-02 17:28:20 +02:00
|
|
|
- <<: *build
|
2019-05-16 19:23:07 +02:00
|
|
|
env: VERSION_SHORT=0.16 EXTRA_TAG=stable
|
2019-05-02 17:28:20 +02:00
|
|
|
- <<: *build
|
2019-05-16 19:23:07 +02:00
|
|
|
env: VERSION_SHORT=0.15
|
2019-05-02 17:28:20 +02:00
|
|
|
- <<: *build
|
2019-05-16 19:23:07 +02:00
|
|
|
env: VERSION_SHORT=0.14
|