Skip to content
Snippets Groups Projects
Commit 71c65ad7 authored by Quang tru HUYNH's avatar Quang tru HUYNH
Browse files

fix deprecated CI variable

parent 7ae7ab33
Branches
No related tags found
No related merge requests found
Pipeline #109369 failed
...@@ -8,7 +8,7 @@ stages: ...@@ -8,7 +8,7 @@ stages:
build: build:
stage: build stage: build
script: script:
- docker login -u gitlab-ci-token -p "$CI_BUILD_TOKEN" registry-gitlab.pasteur.fr - docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" registry-gitlab.pasteur.fr
- export MY_TIME=`date +"%F-%H%M"` - export MY_TIME=`date +"%F-%H%M"`
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$MY_TIME" . - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$MY_TIME" .
- docker push "$CI_REGISTRY_IMAGE" - docker push "$CI_REGISTRY_IMAGE"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment