Commit 6a5f5f82 authored by Manuel Kieweg's avatar Manuel Kieweg 🤷
Browse files

change build args

parent cfb902d4
......@@ -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 $DOCKERFILE
-t $DOCKER_IMAGE_SHA .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker tag $DOCKER_IMAGE_SHA $TAG
- docker push $TAG
......@@ -27,7 +27,6 @@ build:develop:
variables:
TAG: $CI_REGISTRY_IMAGE:develop
BUILDARGS: -race
DOCKERFILE: build/dockerfiles/staging
rules:
- if: $CI_COMMIT_BRANCH == "develop"
<<: *build
......@@ -36,7 +35,6 @@ build:merge-request:
variables:
TAG: $CI_REGISTRY_IMAGE:merge-request
BUILDARGS: -race
DOCKERFILE: build/dockerfiles/staging
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
<<: *build
......@@ -44,7 +42,6 @@ build:merge-request:
build:latest:
variables:
TAG: $CI_REGISTRY_IMAGE:latest
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