From 7fc0cff086c40218ec5f8e1eb84e2a3ada37ad7e Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Mon, 1 Apr 2024 04:48:24 -0500 Subject: [PATCH] update pipeline --- .gitlab/.gitlab-ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index a23e415..fa7f61c 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -50,7 +50,7 @@ gobuild: image: registry.internal.durp.info/golang:1.22 variables: GOPROXY: https://nexus.durp.info/repository/go/ - extends: .golang-build-api + extends: .golang-build stage: build docker: @@ -76,5 +76,17 @@ publish: - $OCTO_PROJECT_NAME - when: never -deploy_prod: - extends: .gitlab-deploy +publish: + extends: .octo_release + stage: publish + needs: + - job: version + artifacts: true + rules: + - if: $CI_COMMIT_BRANCH =~ '/^release/' + exists: + - $OCTO_PROJECT_NAME + - if: $CI_COMMIT_BRANCH =~ 'main' + exists: + - $OCTO_PROJECT_NAME + - when: never