Skip to content
Snippets Groups Projects
Commit 337854b0 authored by Alex's avatar Alex Committed by Alex
Browse files

ci: add tag params to image building

parent 70b671af
No related branches found
No related tags found
No related merge requests found
...@@ -15,10 +15,12 @@ build: ...@@ -15,10 +15,12 @@ build:
stage: build stage: build
services: services:
- docker:18.09.6-dind - docker:18.09.6-dind
before_script:
- export TAG=${CI_COMMIT_TAG:-latest}
script: script:
- ./build.sh - ./build.sh
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.e-biz.fr - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.e-biz.fr
- docker build . -t $CI_REGISTRY_IMAGE - docker build . -t $CI_REGISTRY_IMAGE
- docker push $CI_REGISTRY_IMAGE - docker push $CI_REGISTRY_IMAGE:$TAG
only: only:
- master - master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment