Build base image only on schedule

This commit is contained in:
Antoine Legrand 2017-07-28 13:07:42 +02:00
parent b58f029f83
commit 0ad28d056c
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ local jobs = {
except: ['master']
},
'container-base-build': baseJob.dockerBuild + onlyMaster {
'container-base-build': baseJob.dockerBuild {
// ! Only master/tags
// Update the base container
stage: stages.docker_base,
@ -38,6 +38,7 @@ local jobs = {
' -t %s -f quay-base.dockerfile .' % images.base.name,
'docker push %s' % images.base.name,
],
only: ["schedules"]
},
'container-build': baseJob.dockerBuild {

View file

@ -6,8 +6,7 @@ container-base-build:
- docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
image: docker:git
only:
- master
- tags
- schedules
script:
- docker build --no-cache -t quay.io/quay/quay-base:latest -f quay-base.dockerfile .
- docker push quay.io/quay/quay-base:latest