diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1d1fa6e..b663547 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,8 @@ stages: - test - production - - release + - build + - prepare test: image: rust:alpine @@ -30,8 +31,8 @@ production: only: - master -release_job: - stage: release +prepare_job: + stage: prepare image: rust:alpine rules: - if: $CI_COMMIT_TAG @@ -43,6 +44,17 @@ release_job: paths: - target/release/hyper - target/release/actix + +release_job: + stage: release + image: registry.gitlab.com/gitlab-org/release-cli:latest + rules: + - if: $CI_COMMIT_TAG + script: + - echo "running release_job for $TAG" + needs: + - job: prepare_job + artifacts: true release: name: 'Release $CI_COMMIT_TAG' description: 'New macroblog version' |