Commit aa7394e4 authored by Fabio Montefuscolo's avatar Fabio Montefuscolo
Browse files

add ci

parent f9970b0d
Pipeline #2942 passed with stage
---
image: docker:git
services:
- docker:dind
stages:
- build
variables:
IMAGE_TAGGED: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
IMAGE_LATEST: $CI_REGISTRY_IMAGE:latest
build:
stage: build
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN hub.hacklab.com.br
- docker build -t $IMAGE_TAGGED .
- docker tag $IMAGE_TAGGED $IMAGE_LATEST
- docker push $IMAGE_TAGGED
- docker push $IMAGE_LATEST
only:
- tags
- /master/
tags:
- docker:dind
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