Rearranged stages
This commit is contained in:
parent
984f368ddc
commit
4176d96144
|
@ -2,6 +2,7 @@ stages:
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
- release
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
@ -10,7 +11,7 @@ test:
|
||||||
script:
|
script:
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
build:
|
build:bin:
|
||||||
variables:
|
variables:
|
||||||
RUSTC_WRAPPER: /usr/local/bin/sccache
|
RUSTC_WRAPPER: /usr/local/bin/sccache
|
||||||
SCCACHE_BUCKET: $SCCACHE_BUCKET
|
SCCACHE_BUCKET: $SCCACHE_BUCKET
|
||||||
|
@ -36,7 +37,7 @@ build:
|
||||||
paths:
|
paths:
|
||||||
- target/release/vade
|
- target/release/vade
|
||||||
|
|
||||||
docker:
|
build:docker:
|
||||||
image: docker:19.03.12
|
image: docker:19.03.12
|
||||||
services:
|
services:
|
||||||
- docker:19.03.12-dind
|
- docker:19.03.12-dind
|
||||||
|
@ -46,7 +47,8 @@ docker:
|
||||||
- docker build -t registry.5sigma.io/vade/vade .
|
- docker build -t registry.5sigma.io/vade/vade .
|
||||||
- docker push registry.5sigma.io/vade/vade
|
- docker push registry.5sigma.io/vade/vade
|
||||||
|
|
||||||
binaries:
|
|
||||||
|
deploy:binaries:
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
rules:
|
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"'
|
- '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:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
|
Loading…
Reference in New Issue