chore: Split CI script into stages

This commit is contained in:
Robert Prehn 2020-12-18 14:21:07 -06:00
parent e99c125194
commit 61f7a66747

View file

@ -1,4 +1,7 @@
image: "elixir:1.10" stages:
- build
- test
- deploy
cache: cache:
paths: paths:
@ -14,12 +17,19 @@ variables:
services: services:
- name: postgres:12 - name: postgres:12
tests: build:
before_script: stage: build
image: "docker"
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build --pull -t gitlab.com/mythic-insight/legendary/legendary . - docker build --pull -t gitlab.com/mythic-insight/legendary/legendary .
test:
stage: test
image: "elixir:1.10"
script: script/cibuild script: script/cibuild
build: deploy:
stage: deploy
image: "node:current-alpine"
script: npm run semantic-release script: npm run semantic-release