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

CI_BUILD_REF_NAME -> CI_COMMIT_REF_NAME

parent dca182c7
Branches main
No related tags found
No related merge requests found
Pipeline #109355 canceled
......@@ -11,7 +11,7 @@ docker:
script:
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" registry-gitlab.pasteur.fr
- 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:$MY_TIME" . -f Dockerfile
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA" -t "$CI_REGISTRY_IMAGE:$MY_TIME" . -f Dockerfile
- docker push "$CI_REGISTRY_IMAGE"
singularity:
......
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