From 49a58e285b2078bfd5883ef79789f27b4450d040 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 15 May 2022 17:00:36 +0200 Subject: fix: Fix gitlab pipeline --- .gitlab-ci.yml | 18 +++++++++++++++--- 1 file 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' -- cgit v1.2.3