From c0864a5a467cd06fd728f1c8e1d9a67590dd6c3c Mon Sep 17 00:00:00 2001 From: Matthew Chambers Date: Fri, 26 Mar 2021 14:01:10 -0500 Subject: [PATCH] add release to gitlab when running a tag that starts with v --- .gitlab-ci.yml | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8d322b..f2bb319 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -303,21 +303,20 @@ nr0q_upload_release: # this only creates a "source code release" -- gitlab doesn't specify binaries # except as links to external storage, which is suboptimal for now -# This section appears broke and is failing when ran, comment out for now -#source_release: -# stage: deploy -# image: registry.gitlab.com/gitlab-org/release-cli:latest -# rules: -# - if: '$CI_COMMIT_TAG =~ /^(v).*/' -# release: -# tag_name: $CI_COMMIT_TAG -# name: GridTracker $CI_COMMIT_TAG -# description: GridTracker release $CI_COMMIT_TAG -# ref: '$CI_COMMIT_SHA' -# assets: -# links: -# - name: Binary images for $CI_COMMIT_TAG -# url: https://fleetwood.mchambersradio.com/gridtracker/$CI_COMMIT_TAG/ -# script: -# - echo 'Release for $CI_COMMIT_TAG' +source_release: + stage: deploy + image: registry.gitlab.com/gitlab-org/release-cli:latest + rules: + - if: '$CI_COMMIT_TAG =~ /^(v).*/' + release: + tag_name: $CI_COMMIT_TAG + name: GridTracker $CI_COMMIT_TAG + description: GridTracker release $CI_COMMIT_TAG + ref: '$CI_COMMIT_SHA' + assets: + links: + - name: Binary images for $CI_COMMIT_TAG + url: https://fleetwood.mchambersradio.com/gridtracker/$CI_COMMIT_TAG/ + script: + - echo 'Release for $CI_COMMIT_TAG'