Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cache
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaia-X
Trust Services API
cache
Merge requests
!11
Refactor deployment
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Refactor deployment
refactor-deployment
into
main
Overview
0
Commits
12
Pipelines
21
Changes
24
Open
Kalin Daskalov
requested to merge
refactor-deployment
into
main
9 months ago
Overview
0
Commits
12
Pipelines
21
Changes
1
Expand
0
0
Merge request reports
Viewing commit
c7a5b840
Prev
Next
Show latest version
1 file
+
5
−
76
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c7a5b840
test new ci templates
· c7a5b840
Kalin Daskalov
authored
9 months ago
.gitlab-ci.yml
+
5
−
76
Options
include
:
-
project
:
'
${HELPERS_PATH}'
file
:
svdh-cicd.yml
file
:
-
cicd-template.yml
-
go-template.yml
variables
:
RUNNER_AMD
:
amd64-docker
DOCKER_FILE
:
./deployment/ci/Dockerfile
RUNNER_TAG
:
amd64-docker
GO_VERSION
:
1.22.4
stages
:
-
test
-
build
-
trigger-deploy
lint
:
image
:
golangci/golangci-lint:latest
stage
:
test
tags
:
-
amd64-docker
script
:
-
golangci-lint --version
-
golangci-lint run
before_script
:
-
ln -s /builds /go/src/code.vereign.com
-
cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
unit tests
:
image
:
golang:${GO_VERSION}
extends
:
.gotest
stage
:
test
tags
:
-
amd64-docker
before_script
:
[]
coverage
:
'
/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck
:
image
:
golang:${GO_VERSION}
stage
:
test
tags
:
-
amd64-docker
before_script
:
-
ln -s /builds /go/src/code.vereign.com
-
cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
script
:
-
go version
-
go install golang.org/x/vuln/cmd/govulncheck@latest
-
govulncheck ./...
build-dev
:
extends
:
.docker-build-dev
stage
:
build
tags
:
-
$RUNNER_AMD
rules
:
# Only run if the branch is not main, the pipeline is not triggered by a merge request and the commit is not a tag
-
if
:
'
$CI_COMMIT_BRANCH
!=
"main"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
&&
$CI_COMMIT_TAG
==
null'
build-stg
:
extends
:
.docker-build-dev
stage
:
build
tags
:
-
$RUNNER_AMD
rules
:
-
if
:
'
$CI_COMMIT_TAG'
deploy-dev
:
extends
:
.deploy-dev
stage
:
trigger-deploy
needs
:
-
job
:
build-dev
rules
:
# Only run if the branch is not main, the pipeline is not triggered by a merge request and the commit is not a tag
-
if
:
'
$CI_COMMIT_BRANCH
!=
"main"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"
&&
$CI_COMMIT_TAG
==
null'
deploy-stg
:
extends
:
.deploy-stg
stage
:
trigger-deploy
needs
:
-
job
:
build-stg
rules
:
-
if
:
'
$CI_COMMIT_TAG'
\ No newline at end of file
GOLANGCI_LINT_VERSION
:
latest
\ No newline at end of file
Loading