Commit c6ee0634 authored by Tommy Svendsen's avatar Tommy Svendsen
Browse files

DEICH-4716 Adding before_script into deploy scripts in hope that it will only...

DEICH-4716 Adding before_script into deploy scripts in hope that it will only work for scripts below it
parent 1885add5
......@@ -3,7 +3,7 @@ image: frolvlad/alpine-glibc
variables:
DOCKERHUB_USERNAME: deichman
.before_script: &before
before_script:
- echo -n "START :" && date -u +'%Y-%m-%dT%H:%M:%SZ'
- apk add --update --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing make docker curl bash git
- curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
......@@ -13,9 +13,6 @@ variables:
- export COMPOSE_DOCKER_CLI_BUILD=1
- export TAG=${CI_COMMIT_TAG:-latest}
before_script:
- *before
stages:
- docker-cleanup
- test
......
......@@ -7,6 +7,15 @@ include:
stage: patch
when: manual
.before_script:
- echo -n "START :" && date -u +'%Y-%m-%dT%H:%M:%SZ'
- apk add --update --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing make docker curl bash git
- curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
- export DOCKER_BUILDKIT=1
- export COMPOSE_DOCKER_CLI_BUILD=1
- export TAG=${CI_COMMIT_TAG:-latest}
#Deployment
.deploy-scp:
extends:
......
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