Commit f70c8663 authored by Alicja Reniewicz's avatar Alicja Reniewicz
Browse files

Merge branch 'tag-from-branch-in-docker-image' into 'rc3.0'

Add tag to docker image

See merge request !3
parents 0f28a767 8b5e7e1b
Pipeline #8034 passed with stages
in 9 minutes and 54 seconds
stages:
- build-angular-ui
- build-ui-docker
build-angular-ui:
stage: build-angular-ui
image: trion/ng-cli
artifacts:
paths:
- dist/melodic-frontend
before_script:
- npm install -g --save-dev @angular/cli@latest
- npm install --save-dev --unsafe-perm node-sass
- npm install
script:
- ng build --prod
build-ui-docker:
stage: build-ui-docker
image: docker:19.03.1
services:
- docker:19.03.1-dind
variables:
DOCKER_TLS_CERTDIR: "/certs"
dependencies:
- build-angular-ui
script:
- docker login gitlab.ow2.org:4567 -u $K8S_SECRET_DOCKER_USER -p $K8S_SECRET_DOCKER_PASSWORD
- docker build -t gitlab.ow2.org:4567/melodic/melodic-frontend:$CI_COMMIT_BRANCH .
- docker push gitlab.ow2.org:4567/melodic/melodic-frontend:$CI_COMMIT_BRANCH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment