Bring back non-publishing docker build
This commit is contained in:
parent
3f4eff7ac7
commit
32150e79a5
@ -79,23 +79,22 @@ remote-repo-job:
|
|||||||
#- opam install -y ocp-indent
|
#- opam install -y ocp-indent
|
||||||
#- opam user-setup install
|
#- opam user-setup install
|
||||||
|
|
||||||
# Run a docker build on the ligo image, to see if the current
|
# Run a docker build without publishing to the registry
|
||||||
# commit does not break it
|
build-current-docker-image:
|
||||||
# build-current-docker-image:
|
stage: build
|
||||||
# stage: build
|
<<: *docker
|
||||||
# <<: *docker
|
<<: *docker_build
|
||||||
# <<: *docker_build
|
except:
|
||||||
# except:
|
- master
|
||||||
# - master
|
|
||||||
|
|
||||||
# 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
|
||||||
build-and-publish-latest-docker-image:
|
build-and-publish-latest-docker-image:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
<<: *docker
|
<<: *docker
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
after_script:
|
after_script:
|
||||||
- docker login -u $LIGO_REGISTRY_USER -p $LIGO_REGISTRY_PASSWORD
|
- docker login -u $LIGO_REGISTRY_USER -p $LIGO_REGISTRY_PASSWORD
|
||||||
- docker push $LIGO_REGISTRY_IMAGE:latest
|
- docker push $LIGO_REGISTRY_IMAGE:latest
|
||||||
# only:
|
only:
|
||||||
# - master
|
- master
|
||||||
|
Loading…
Reference in New Issue
Block a user