Change artifact name for built docker image

This commit is contained in:
Matej Sima 2019-05-27 14:37:02 +02:00
parent a4ee2007d0
commit 002a320b4c

View File

@ -82,7 +82,7 @@ build-current-docker-image:
<<: *docker <<: *docker
script: script:
- docker build -t $CI_REGISTRY_IMAGE:latest -f ./docker/Dockerfile . - docker build -t $CI_REGISTRY_IMAGE:latest -f ./docker/Dockerfile .
- docker save $CI_REGISTRY_IMAGE:latest > $CI_REGISTRY_IMAGE:latest - docker save $CI_REGISTRY_IMAGE:latest > image
artifacts: artifacts:
paths: paths:
- $CI_REGISTRY_IMAGE:latest - $CI_REGISTRY_IMAGE:latest
@ -97,7 +97,7 @@ build-and-publish-latest-docker-image:
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
script: script:
- docker load -i $CI_REGISTRY_IMAGE:latest - docker load -i image
- docker push $CI_REGISTRY_IMAGE:latest - docker push $CI_REGISTRY_IMAGE:latest
only: only:
- master - master