Commit 20c7b5ab authored by Morten Knutsen's avatar Morten Knutsen

Merge branch 'update_deploy' into 'master'

Update to use gitlab-ci-helpers

See merge request !1
parents 014f7947 941e78df
Pipeline #22125 passed with stage
in 30 seconds
image: registry.uninett.no/system/docker-builder:1.13.1-uninett7
include:
- project: 'asm/gitlab-ci-helpers'
file: '/gitlab-ci-helpers.yml'
stages:
- build
development:
stage: deploy
script:
- docker build -t "registry.uninett.no/$CI_PROJECT_PATH:latest" .
- docker push "registry.uninett.no/$CI_PROJECT_PATH:latest"
extends: .docker-build
stage: build
variables:
CI_REGISTRY_TAG: latest
only:
- master
stable:
stage: deploy
script:
- docker build -t "registry.uninett.no/$CI_PROJECT_PATH:$CI_BUILD_REF_NAME" .
- docker push "registry.uninett.no/$CI_PROJECT_PATH:$CI_BUILD_REF_NAME"
extends: .docker-build
stage: build
variables:
CI_REGISTRY_TAG: $CI_COMMIT_REF_NAME
only:
- tags
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment