diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8baf5999b4aff0226491c3969af1f9f596d88ea6..dc5d8262cdb4c6d723a37b5c188f7b6af1314dce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,8 @@ flake8: build-docker-image: stage: build + only: + - master image: name: gitlab-registry.cern.ch/ci-tools/docker-image-builder entrypoint: [""] @@ -34,6 +36,8 @@ deploy-qa: OPENSHIFT_SERVER: https://api.paas.okd.cern.ch script: - oc tag --source=docker ${CI_REGISTRY_IMAGE}:latest ${APP_NAME}:latest --token ${QA_DEPLOY_TOKEN} --server=${OPENSHIFT_SERVER} -n ${NAMESPACE} + only: + - master deploy-prod: <<: *deploy_definition