Rearranged stages
This commit is contained in:
parent
984f368ddc
commit
4176d96144
|
@ -2,6 +2,7 @@ stages:
|
|||
- test
|
||||
- build
|
||||
- deploy
|
||||
- release
|
||||
|
||||
|
||||
test:
|
||||
|
@ -10,7 +11,7 @@ test:
|
|||
script:
|
||||
- cargo test
|
||||
|
||||
build:
|
||||
build:bin:
|
||||
variables:
|
||||
RUSTC_WRAPPER: /usr/local/bin/sccache
|
||||
SCCACHE_BUCKET: $SCCACHE_BUCKET
|
||||
|
@ -36,7 +37,7 @@ build:
|
|||
paths:
|
||||
- target/release/vade
|
||||
|
||||
docker:
|
||||
build:docker:
|
||||
image: docker:19.03.12
|
||||
services:
|
||||
- docker:19.03.12-dind
|
||||
|
@ -46,7 +47,8 @@ docker:
|
|||
- docker build -t registry.5sigma.io/vade/vade .
|
||||
- docker push registry.5sigma.io/vade/vade
|
||||
|
||||
binaries:
|
||||
|
||||
deploy:binaries:
|
||||
image: curlimages/curl:latest
|
||||
stage: deploy
|
||||
rules:
|
||||
|
@ -55,7 +57,6 @@ binaries:
|
|||
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file vade-linux-x64.tar.gz "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/bin/$CI_COMMIT_TAG/vade-linux-x64-$CI_COMMIT_TAG.tar.gz"'
|
||||
|
||||
|
||||
|
||||
release:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
|
|
Loading…
Reference in New Issue