Skip to content
Snippets Groups Projects
Commit 5a90ec7b authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

use YAML anchor

parent 1a1b9899
No related branches found
No related tags found
No related merge requests found
Pipeline #115288 failed
......@@ -16,6 +16,12 @@ stages:
- build
- deploy
.docker-login: $docker-login
- i=0; while [ "$i" -lt 12 ]; do docker info && break; sleep 5; i=$(( i + 1 )) ; done
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
.build:
stage: build
image: docker:24
......@@ -28,8 +34,7 @@ stages:
MEILI_HOST: "http://localhost:7700"
MEILI_API_KEY: MASTER_KEY
before_script:
- i=0; while [ "$i" -lt 12 ]; do docker info && break; sleep 5; i=$(( i + 1 )) ; done
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- *docker-login
script:
- >
docker buildx build --pull -t "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$CI_COMMIT_SHORT_SHA"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment