Commit 3892d169 authored by Manuel Kieweg's avatar Manuel Kieweg 🤷
Browse files

change var name

parent b2017651
......@@ -18,7 +18,7 @@ variables:
docker build \
--build-arg GITLAB_USER=$GO_MODULES_USER \
--build-arg GITLAB_TOKEN=$GO_MODULES_ACCESS_TOKEN \
-t $DOCKER_IMAGE_SHA $PATH
-t $DOCKER_IMAGE_SHA $DOCKERFILE
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker tag $DOCKER_IMAGE_SHA $TAG
- docker push $TAG
......@@ -26,7 +26,7 @@ variables:
build:develop:
variables:
TAG: $CI_REGISTRY_IMAGE:develop
PATH: build/dockerfiles/staging
DOCKERFILE: build/dockerfiles/staging
rules:
- if: $CI_COMMIT_BRANCH == "develop"
<<: *build
......@@ -34,7 +34,7 @@ build:develop:
build:merge-request:
variables:
TAG: $CI_REGISTRY_IMAGE:merge-request
PATH: build/dockerfiles/staging
DOCKERFILE: build/dockerfiles/staging
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
<<: *build
......@@ -42,7 +42,7 @@ build:merge-request:
build:latest:
variables:
TAG: $CI_REGISTRY_IMAGE:latest
PATH: build/dockerfiles/production
DOCKERFILE: build/dockerfiles/production
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
<<: *build
\ No newline at end of file
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