Commit b08b910a authored by Estelle Ancelet's avatar Estelle Ancelet
Browse files

gitlab-ci: add latest tag

parent 86a3e08a
Pipeline #43126 passed with stages
in 1 minute and 52 seconds
......@@ -19,14 +19,15 @@ build azodyn:
stage: build
variables:
IMAGE_TAG: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/azodyn_pea:$CI_COMMIT_SHA
CONTAINER_IMAGE: $CI_REGISTRY/$CI_PROJECT_NAMESPACE/azodyn_pea
script:
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker pull $IMAGE_TAG || true
- docker build --cache-from $IMAGE_TAG -t $IMAGE_TAG -f siwaa_recipe/container/Dockerfile .
- docker push $IMAGE_TAG
- docker pull $CONTAINER_IMAGE:latest || true
- docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA -f siwaa_recipe/container/Dockerfile .
- docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA
- docker push $CONTAINER_IMAGE:latest
when: manual
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment