fix: Switch CI to DAG
This commit is contained in:
parent
bb7ebc3a42
commit
cadac85803
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
- deploy
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- _build
|
- _build
|
||||||
|
@ -12,6 +16,7 @@ variables:
|
||||||
DOCKER_HOST: tcp://docker:2376
|
DOCKER_HOST: tcp://docker:2376
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
stage: test
|
||||||
needs: []
|
needs: []
|
||||||
image: "elixir:1.10"
|
image: "elixir:1.10"
|
||||||
services:
|
services:
|
||||||
|
@ -19,6 +24,7 @@ test:
|
||||||
script: script/cibuild
|
script: script/cibuild
|
||||||
|
|
||||||
deploy_to_tags:
|
deploy_to_tags:
|
||||||
|
stage: deploy
|
||||||
needs: ['test']
|
needs: ['test']
|
||||||
image: "node:15.0"
|
image: "node:15.0"
|
||||||
script:
|
script:
|
||||||
|
@ -26,6 +32,7 @@ deploy_to_tags:
|
||||||
- npx semantic-release
|
- npx semantic-release
|
||||||
|
|
||||||
deploy_to_registry:
|
deploy_to_registry:
|
||||||
|
stage: deploy
|
||||||
needs: ['test']
|
needs: ['test']
|
||||||
image: "docker:19.03.12"
|
image: "docker:19.03.12"
|
||||||
services:
|
services:
|
||||||
|
|
Loading…
Reference in a new issue