Change artifact name for built docker image
This commit is contained in:
parent
a4ee2007d0
commit
002a320b4c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user