Build base image only on schedule
This commit is contained in:
parent
b58f029f83
commit
0ad28d056c
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ local jobs = {
|
||||||
except: ['master']
|
except: ['master']
|
||||||
},
|
},
|
||||||
|
|
||||||
'container-base-build': baseJob.dockerBuild + onlyMaster {
|
'container-base-build': baseJob.dockerBuild {
|
||||||
// ! Only master/tags
|
// ! Only master/tags
|
||||||
// Update the base container
|
// Update the base container
|
||||||
stage: stages.docker_base,
|
stage: stages.docker_base,
|
||||||
|
@ -38,6 +38,7 @@ local jobs = {
|
||||||
' -t %s -f quay-base.dockerfile .' % images.base.name,
|
' -t %s -f quay-base.dockerfile .' % images.base.name,
|
||||||
'docker push %s' % images.base.name,
|
'docker push %s' % images.base.name,
|
||||||
],
|
],
|
||||||
|
only: ["schedules"]
|
||||||
},
|
},
|
||||||
|
|
||||||
'container-build': baseJob.dockerBuild {
|
'container-build': baseJob.dockerBuild {
|
||||||
|
|
|
@ -6,8 +6,7 @@ container-base-build:
|
||||||
- docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
- docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
||||||
image: docker:git
|
image: docker:git
|
||||||
only:
|
only:
|
||||||
- master
|
- schedules
|
||||||
- tags
|
|
||||||
script:
|
script:
|
||||||
- docker build --no-cache -t quay.io/quay/quay-base:latest -f quay-base.dockerfile .
|
- docker build --no-cache -t quay.io/quay/quay-base:latest -f quay-base.dockerfile .
|
||||||
- docker push quay.io/quay/quay-base:latest
|
- docker push quay.io/quay/quay-base:latest
|
||||||
|
|
Reference in a new issue