From 61f7a667474c5dfb835f68cc354f5d127de6669c Mon Sep 17 00:00:00 2001 From: Robert Prehn <3952444+prehnRA@users.noreply.github.com> Date: Fri, 18 Dec 2020 14:21:07 -0600 Subject: [PATCH] chore: Split CI script into stages --- .gitlab-ci.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db00ab8d..86389cfb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,7 @@ -image: "elixir:1.10" +stages: + - build + - test + - deploy cache: paths: @@ -14,12 +17,19 @@ variables: services: - name: postgres:12 -tests: - before_script: +build: + stage: build + image: "docker" + script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker build --pull -t gitlab.com/mythic-insight/legendary/legendary . +test: + stage: test + image: "elixir:1.10" script: script/cibuild -build: +deploy: + stage: deploy + image: "node:current-alpine" script: npm run semantic-release