Skip to content
Snippets Groups Projects
Commit 7f8ab6fe authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Merge branch 'simplify' into 'master'

New build method

See merge request linuxsupport/cronjobs/centos_rss!6
parents 04f22c4d ff3f7c7c
No related branches found
No related tags found
1 merge request!6New build method
Pipeline #4213476 passed
...@@ -2,29 +2,8 @@ ...@@ -2,29 +2,8 @@
include: 'https://gitlab.cern.ch/linuxsupport/cronjobs/base/raw/master/gitlab-ci.yml' include: 'https://gitlab.cern.ch/linuxsupport/cronjobs/base/raw/master/gitlab-ci.yml'
build_centos_rss: build_centos_rss:
stage: build extends: .build_image
tags:
- docker-image-build
script: "echo" # unused but this line is required by GitLab CI
variables: variables:
CONTEXT_DIR: centos_rss CONTEXT_DIR: centos_rss
TO: $CI_REGISTRY_IMAGE/centos_rss:$CI_COMMIT_REF_NAME DOCKER_FILE: centos_rss/Dockerfile
TO: $CI_REGISTRY_IMAGE/centos_rss
deploy:
extends: .nomad
stage: deploy
script:
- for j in *.nomad; do echo -e "\n${j}:"; nomad job run <(envsubst < $j); done
only:
- tags
- master
deploy_dev:
extends: .nomad
stage: deploy
script:
- for j in *.nomad; do echo -e "\n${j}:"; nomad job run <(envsubst < $j); done
except:
- tags
- master
when: manual
...@@ -13,8 +13,7 @@ job "${PREFIX}_centos_rss" { ...@@ -13,8 +13,7 @@ job "${PREFIX}_centos_rss" {
driver = "docker" driver = "docker"
config { config {
image = "https://gitlab-registry.cern.ch/linuxsupport/cronjobs/centos_rss/centos_rss:${CI_COMMIT_REF_NAME}" image = "https://gitlab-registry.cern.ch/linuxsupport/cronjobs/centos_rss/centos_rss:${CI_COMMIT_SHORT_SHA}"
force_pull = ${FORCE_PULL}
logging { logging {
config { config {
tag = "${PREFIX}_centos_rss" tag = "${PREFIX}_centos_rss"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment