From 4176d96144a97a570f3c20b227ef929d11752d4a Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Tue, 8 Feb 2022 21:28:00 -0500 Subject: [PATCH] Rearranged stages --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f712bd..e5dc2f3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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