Commit c99f7764 authored by Matheus Horstmann's avatar Matheus Horstmann 🐴 Committed by Lucas Fernandes de Oliveira

Issue #14: Update gitlab.cy

Signed-off-by: Matheus Horstmann's avatarMatheus Horstmann <mch15@inf.ufpr.br>
parent 7adf76a4
......@@ -10,6 +10,9 @@ variables:
POSTGRES_USER: 'runner'
POSTGRES_PASSWORD: '123mudar'
POSTGRES_PORT: 5432
image_version: ''
DOCKER_URL: 'dockerregistry.c3sl.ufpr.br:5000/c3sl/simmctic-form-creator-api'
cache:
paths:
- node_modules
......@@ -45,7 +48,8 @@ run_test:
build:
stage: build
script:
- docker build -t marula.c3sl.ufpr.br:5000/c3sl/simmctic-form-creator-api:v0.0.1 .
- image_version=$(grep \"version\" ./package.json | cut -f2 -d':'| sed -e 's/"\|,//g' | tr -d ' ')
- docker build -t ${DOCKER_URL}:${image_version} -t ${DOCKER_URL}:latest .
tags:
- docker
- build
......@@ -53,7 +57,9 @@ build:
deploy:
stage: deploy
script:
- docker push marula.c3sl.ufpr.br:5000/c3sl/simmctic-form-creator-api:v0.0.1
- image_version=$(grep \"version\" ./package.json | cut -f2 -d':'| sed -e 's/"\|,//g' | tr -d ' ')
- docker push ${DOCKER_URL}:${image_version}
- docker push ${DOCKER_URL}:latest
tags:
- docker
- build
......
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