aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2022-05-15 17:00:36 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2022-05-15 17:00:36 +0200
commit49a58e285b2078bfd5883ef79789f27b4450d040 (patch)
treedcfeb857726ea3e0b12301184e30ce9e1c51d86a /.gitlab-ci.yml
parentcc847c356b652a50c82f5d7a3683ab6a2880ed6b (diff)
downloadmacroblog.rs-49a58e285b2078bfd5883ef79789f27b4450d040.tar.gz
macroblog.rs-49a58e285b2078bfd5883ef79789f27b4450d040.tar.bz2
macroblog.rs-49a58e285b2078bfd5883ef79789f27b4450d040.zip
fix: Fix gitlab pipeline
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
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'