Verified Commit 02a103a8 authored by René Kersten's avatar René Kersten
Browse files

feat: update gitlab-ci

parent eee82abf
Pipeline #17165 failed with stage
in 39 seconds
......@@ -7,7 +7,6 @@ services:
stages:
- build
- tag
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
......@@ -16,15 +15,8 @@ build:
stage: build
script:
- docker pull $IMAGE:latest || true
- docker build --cache-from $IMAGE:latest --tag $IMAGE:$CI_COMMIT_SHA --tag $IMAGE:latest .
- docker build --cache-from $IMAGE:latest --tag $IMAGE:$CI_COMMIT_SHA --tag $IMAGE:latest -f $DOCKERFILE .
- docker push $IMAGE:$CI_COMMIT_SHA
- docker push $IMAGE:latest
tag:
stage: tag
script:
- docker pull $IMAGE:$CI_COMMIT_SHA
- docker tag $IMAGE:$CI_COMMIT_SHA $IMAGE:production
- docker push $IMAGE:production
only:
- master
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