Skip to content
Snippets Groups Projects
Commit 00694786 authored by Dean Lovett's avatar Dean Lovett
Browse files

fix: fixed issue with duplicate images

parent c11a7ddd
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,6 @@ variables:
stages:
- prebuild
- build
- release
docker_lint:
......@@ -18,17 +17,6 @@ docker_lint:
tags:
- nexus_runner
build:
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN gitlab.nexdev.uk:5555
- docker build -t $IMAGE_NAME:$CI_COMMIT_SHA .
- docker push $IMAGE_NAME:$CI_COMMIT_SHA
only:
- tags
tags:
- nexus_runner
release:version:
image: gitlab.nexdev.uk:5555/pub/nexus-release-image/master
stage: release
......@@ -47,9 +35,7 @@ release_tag:
stage: release
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN gitlab.nexdev.uk:5555
- docker tag $IMAGE_NAME:$CI_COMMIT_SHA $IMAGE_NAME:$CI_COMMIT_REF_NAME
- docker push $IMAGE_NAME:$CI_COMMIT_SHA
- docker build -t $IMAGE_NAME:$CI_COMMIT_REF_NAME .
- docker push $IMAGE_NAME:$CI_COMMIT_REF_NAME
only:
- tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment