This commit is contained in:
2024-05-09 17:57:32 -05:00
parent a69d2c7a40
commit 5043720f95
10 changed files with 121 additions and 45 deletions

View File

@@ -1,5 +1,31 @@
include:
- local: .variables.yml
- project: 'developerdurp/yml'
ref: main
file: 'pipeline.yml'
stages:
- deploy
variables:
GO_VERSION: "1.22"
GOLANGCI_LINT_VERISON: "v1.58.0"
UPLOAD_PACKAGE: "false"
build_go:
stage: deploy
allow_failure: false
trigger:
include:
- project: 'developerdurp/yml'
ref: 'main'
file:
- 'pipelines/go-build.yml'
strategy: depend
rules:
- exists:
- "go.mod"
deploy_staging:
stage: deploy
needs:
- job: build_go
script:
- echo "Deploy to staging server"
environment:
name: staging