Commit f23ab51b authored by Esteban Bosse 's avatar Esteban Bosse

Add gitlabci image build

parent 93b1e5a6
Pipeline #32529 failed
.build_template: &build_template
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
script:
- docker build --pull -t $CI_REGISTRY_IMAGE/$NAME --build-arg CI_REGISTRY_IMAGE=$CI_REGISTRY_IMAGE -f dockerfiles/$NAME .
- |
if [ "${CI_COMMIT_REF_NAME}" == "master" ]; then
docker push $CI_REGISTRY_IMAGE/$NAME
fi
only:
changes:
- dockerfiles/*
- scripts/*
- patches/*
- salsa-ci.yml
refs:
- schedules
base 0 5:
<<: *build_template
stage: images-base
variables:
NAME: 'base'
base 1 5:
<<: *build_template
stage: images-base
variables:
NAME: 'base:jessie'
base 2 5:
<<: *build_template
stage: images-base
variables:
NAME: 'base:stretch'
base 3 5:
<<: *build_template
stage: images-base
variables:
NAME: 'base:stretch-backports'
base 4 5:
<<: *build_template
stage: images-base
variables:
NAME: 'base:unstable'
piuparts:
<<: *build_template
stage: images-others
variables:
NAME: 'piuparts'
reprotest:
<<: *build_template
stage: images-others
variables:
NAME: 'reprotest'
# Image for the pipeline runner
# salsa.debian.org/salsa-ci-team/pipeline
pipeline:
<<: *build_template
stage: images-others
variables:
NAME: 'pipeline'
autopkgtest:
<<: *build_template
stage: images-others
variables:
NAME: 'autopkgtest'
blhc:
<<: *build_template
stage: images-others
variables:
NAME: 'blhc'
lintian 0 5:
<<: *build_template
stage: images-others
variables:
NAME: 'lintian'
lintian 1 5:
<<: *build_template
stage: images-others
variables:
NAME: 'lintian:jessie'
lintian 2 5:
<<: *build_template
stage: images-others
variables:
NAME: 'lintian:stretch'
lintian 3 5:
<<: *build_template
stage: images-others
variables:
NAME: 'lintian:stretch-backports'
lintian 4 5:
<<: *build_template
stage: images-others
variables:
NAME: 'lintian:unstable'
gbp:
<<: *build_template
stage: images-others
variables:
NAME: 'gbp'
dockerbuilder 0 5:
<<: *build_template
stage: images-others
variables:
NAME: 'dockerbuilder'
dockerbuilder 1 5:
<<: *build_template
stage: images-others
variables:
NAME: 'dockerbuilder:jessie'
dockerbuilder 2 5:
<<: *build_template
stage: images-others
variables:
NAME: 'dockerbuilder:stretch'
dockerbuilder 3 5:
<<: *build_template
stage: images-others
variables:
NAME: 'dockerbuilder:stretch-backports'
dockerbuilder 4 5:
<<: *build_template
stage: images-others
variables:
NAME: 'dockerbuilder:unstable'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment