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