Rename CI variables for docker build & deploy
This commit is contained in:
parent
002a320b4c
commit
76027dea9c
@ -81,11 +81,11 @@ build-current-docker-image:
|
|||||||
stage: build
|
stage: build
|
||||||
<<: *docker
|
<<: *docker
|
||||||
script:
|
script:
|
||||||
- docker build -t $CI_REGISTRY_IMAGE:latest -f ./docker/Dockerfile .
|
- docker build -t $LIGO_REGISTRY_IMAGE:latest -f ./docker/Dockerfile .
|
||||||
- docker save $CI_REGISTRY_IMAGE:latest > image
|
- docker save $LIGO_REGISTRY_IMAGE:latest > image
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- $CI_REGISTRY_IMAGE:latest
|
- image
|
||||||
|
|
||||||
# When a MR/PR is merged to master
|
# When a MR/PR is merged to master
|
||||||
# take the previous build and publish it to Docker Hub
|
# take the previous build and publish it to Docker Hub
|
||||||
@ -95,7 +95,7 @@ build-and-publish-latest-docker-image:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- build-current-docker-image
|
- build-current-docker-image
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
|
- docker login -u $LIGO_REGISTRY_USER -p $LIGO_REGISTRY_PASSWORD
|
||||||
script:
|
script:
|
||||||
- docker load -i image
|
- docker load -i image
|
||||||
- docker push $CI_REGISTRY_IMAGE:latest
|
- docker push $CI_REGISTRY_IMAGE:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user