Commit 13457ba9 authored by Lucas Fernandes de Oliveira's avatar Lucas Fernandes de Oliveira

Merge branch '14-atualizar-gitlab-ci' into 'develop'

Resolve "Atualizar gitlab-ci"

Closes #14

See merge request !8
parents 7adf76a4 c99f7764
Pipeline #19964 passed with stages
in 1 minute and 27 seconds
......@@ -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