Skip to content
Snippets Groups Projects
Commit 5304c59d authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

ready to merge

parent 21ebda56
Branches
Tags
1 merge request!1Cicd
Pipeline #43080 passed
...@@ -11,8 +11,7 @@ variables: ...@@ -11,8 +11,7 @@ variables:
################################################################################ ################################################################################
# Build and push anchor # Build and push anchor
.build_and_push_docker_image: &build_and_push_docker_image .build_and_push_docker_image: &build_and_push_docker_image
# - docker build --pull --tag "$CI_REGISTRY_IMAGE/$IMAGE_NAME:latest" . - docker build --pull --tag "$CI_REGISTRY_IMAGE/$IMAGE_NAME:latest" .
- docker build -t "$CI_REGISTRY_IMAGE/$IMAGE_NAME:latest" - < $DOCKER_FILE
- docker push "$CI_REGISTRY_IMAGE/$IMAGE_NAME:latest" - docker push "$CI_REGISTRY_IMAGE/$IMAGE_NAME:latest"
# Docker Authentification anchor # Docker Authentification anchor
...@@ -48,7 +47,6 @@ Build Calqul: ...@@ -48,7 +47,6 @@ Build Calqul:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
NAMESPACE_ENV: "d01" NAMESPACE_ENV: "d01"
IMAGE_NAME: calqul-$NAMESPACE_ENV IMAGE_NAME: calqul-$NAMESPACE_ENV
DOCKER_FILE: ./calqul.Dockerfile
rules: rules:
- if: $CI_COMMIT_BRANCH == "cicd" - if: $CI_COMMIT_BRANCH == "cicd"
- changes: # build image only if sources have changed. - changes: # build image only if sources have changed.
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment