feat(ci): add latest tag

This commit is contained in:
Adrien Langou 2023-06-11 22:18:00 +02:00 committed by Pierre-Olivier Mercier
parent 5cf894031c
commit 7999464384

View File

@ -17,12 +17,6 @@ cache:
- qa/ui/node_modules/ - qa/ui/node_modules/
- frontend/ui/node_modules/ - frontend/ui/node_modules/
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
DOCKER_TLS_CERTDIR: ""
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://dockerdaemon:2375/
.build-amd64: &build-amd64 .build-amd64: &build-amd64
stage: build stage: build
image: golang:alpine3.18 image: golang:alpine3.18
@ -45,7 +39,8 @@ variables:
/kaniko/executor \ /kaniko/executor \
--context . \ --context . \
--dockerfile "${DOCKERFILE}" \ --dockerfile "${DOCKERFILE}" \
--destination "${CI_REGISTRY_IMAGE}/${CI_JOB_NAME}/${CI_COMMIT_REF_SLUG}:${CI_COMMIT_SHA}" --destination "${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG}/${CI_JOB_NAME}:${CI_COMMIT_SHA}" \
--destination "${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG}/${CI_JOB_NAME}:latest"
get-deps: get-deps:
stage: deps stage: deps