update pipeline

This commit is contained in:
2024-04-01 04:48:24 -05:00
parent d9b412ca3a
commit 7fc0cff086

View File

@@ -50,7 +50,7 @@ gobuild:
image: registry.internal.durp.info/golang:1.22 image: registry.internal.durp.info/golang:1.22
variables: variables:
GOPROXY: https://nexus.durp.info/repository/go/ GOPROXY: https://nexus.durp.info/repository/go/
extends: .golang-build-api extends: .golang-build
stage: build stage: build
docker: docker:
@@ -76,5 +76,17 @@ publish:
- $OCTO_PROJECT_NAME - $OCTO_PROJECT_NAME
- when: never - when: never
deploy_prod: publish:
extends: .gitlab-deploy 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