Commit fc39bcf1 authored by Genar Trias Ortiz's avatar Genar Trias Ortiz 🎉

fixing gitlab-ci file

parent 2adab996
Pipeline #57847202 passed with stages
in 4 minutes and 59 seconds
......@@ -6,15 +6,13 @@ stages:
services:
- docker:dind
before_script:
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
mix:
stage: mix
image: elixir:latest
before_script:
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
script:
- mix test
......@@ -22,6 +20,8 @@ build-master:
stage: build-master
image: docker:latest
stage: build
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
......@@ -32,6 +32,8 @@ build:
stage: build
image: docker:latest
stage: build
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
......
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