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

Merge branch 'simplify' into 'master'

New build method

See merge request !2
parents 49648f45 8a56ee90
No related branches found
No related tags found
1 merge request!2New build method
Pipeline #4214496 passed
Pipeline: stream8_backups

#4214497

    ...@@ -3,29 +3,8 @@ include: 'https://gitlab.cern.ch/linuxsupport/cronjobs/base/raw/master/gitlab-ci ...@@ -3,29 +3,8 @@ include: 'https://gitlab.cern.ch/linuxsupport/cronjobs/base/raw/master/gitlab-ci
    build_stream8_backups: build_stream8_backups:
    stage: build extends: .build_image
    tags:
    - docker-image-build
    script: "echo" # unused but this line is required by GitLab CI
    variables: variables:
    CONTEXT_DIR: stream8_backups CONTEXT_DIR: stream8_backups
    TO: $CI_REGISTRY_IMAGE/stream8_backups:$CI_COMMIT_REF_NAME DOCKER_FILE: stream8_backups/Dockerfile
    TO: $CI_REGISTRY_IMAGE/stream8_backups
    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
    ...@@ -21,8 +21,7 @@ job "${PREFIX}_stream8_backups" { ...@@ -21,8 +21,7 @@ job "${PREFIX}_stream8_backups" {
    driver = "docker" driver = "docker"
    config { config {
    image = "https://gitlab-registry.cern.ch/linuxsupport/cronjobs/stream8_backups/stream8_backups:${CI_COMMIT_REF_NAME}" image = "https://gitlab-registry.cern.ch/linuxsupport/cronjobs/stream8_backups/stream8_backups:${CI_COMMIT_SHORT_SHA}"
    force_pull = ${FORCE_PULL}
    logging { logging {
    config { config {
    tag = "${PREFIX}_stream8_backups" tag = "${PREFIX}_stream8_backups"
    ......
    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