Skip to content
Snippets Groups Projects
Commit 5b2c7dc7 authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

Issue SCRUM#159: add .gitlab-ci to generate the docker image

parent 7277eb5b
No related branches found
No related tags found
1 merge request!11Issue/159
Pipeline #
variables:
IMAGE_URL: 'marula.c3sl.ufpr.br:5000/c3sl/agent-gesac'
IMAGE_VERSION: '0.1'
stages:
- build
- deploy
build:
stage: build
script:
- docker build -t ${IMAGE_URL}:${IMAGE_VERSION} -t ${IMAGE_URL}:latest src
tags:
- docker
- build
deploy:
stage: deploy
variables:
IMAGE_VERSION: ''
script:
- docker push ${IMAGE_URL}:${IMAGE_VERSION}
- docker push ${IMAGE_URL}:latest
tags:
- docker
- build
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment