From 7846749fde34a426a1cc4174c12332440e0bb935 Mon Sep 17 00:00:00 2001 From: developerdurp Date: Sat, 25 Nov 2023 08:01:22 -0600 Subject: [PATCH] update --- pipeline.yml | 4 +++- templates/golang.tpl.yml | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pipeline.yml b/pipeline.yml index cd00c99..5558f89 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -1,8 +1,10 @@ stages: - compliance - deploy + variables: - GOLANGCI-LINT-VERISON: "v1.55.2" + GO_VERSION: "1.20" + GOLANGCI_LINT_VERISON: "v1.55.2" compliance: stage: compliance diff --git a/templates/golang.tpl.yml b/templates/golang.tpl.yml index 1e942b3..fb89a9a 100644 --- a/templates/golang.tpl.yml +++ b/templates/golang.tpl.yml @@ -1,8 +1,7 @@ .golang-build-api: variables: - GO-VERSION: "1.20" #GOPROXY: https://nexus.durp.info/repository/go/ - image: registry.durp.info/golang:${GO-VERSION} + image: registry.durp.info/golang:${GO_VERSION} script: - ./scripts/golang-build-api.sh artifacts: @@ -14,6 +13,6 @@ variables: #GOPROXY: https://nexus.durp.info/repository/go/ CGO_ENABLED: 0 - image: registry.durp.info/golangci/golangci-lint:${GOLANGCI-LINT-VERISON} + image: registry.durp.info/golangci/golangci-lint:${GOLANGCI_LINT_VERISON} script: - ./scripts/golang-lint.sh