Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cache
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
Commits
8ce22815
Commit
8ce22815
authored
1 year ago
by
Kalin Daskalov
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml with new deployment jobs
parent
0388b071
Branches
Branches containing commit
No related tags found
1 merge request
!11
Refactor deployment
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+37
-26
37 additions, 26 deletions
.gitlab-ci.yml
with
37 additions
and
26 deletions
.gitlab-ci.yml
+
37
−
26
View file @
8ce22815
include
:
-
project
:
'
${HELPERS_PATH}'
file
:
svdh-cicd.yml
variables
:
HELPERS_FILE
:
docker-build.yml
RUNNER_AMD
:
amd64-docker
APP_HELM_NAME
:
cache
DOCKER_FILE
:
deployment/ci/Dockerfile
DOCKER_FILE
:
./deployment/ci/Dockerfile
GO_VERSION
:
1.22.3
stages
:
-
compile
-
test
-
build
-
manifest
-
deploy
include
:
-
project
:
"
${HELPERS_PATH}"
file
:
"
${HELPERS_FILE}"
-
template
:
"
Workflows/Branch-Pipelines.gitlab-ci.yml"
-
trigger-deploy
lint
:
image
:
golangci/golangci-lint:v1.50.1
stage
:
test
...
...
@@ -28,7 +25,7 @@ lint:
-
cd /go/src/gitlab.com/${CI_PROJECT_PATH}
unit tests
:
image
:
golang:
1.19.4
image
:
golang:
${GO_VERSION}
extends
:
.gotest
stage
:
test
tags
:
...
...
@@ -37,7 +34,7 @@ unit tests:
coverage
:
'
/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck
:
image
:
golang:
1.19.4
image
:
golang:
${GO_VERSION}
stage
:
test
tags
:
-
amd64-docker
...
...
@@ -48,21 +45,35 @@ govulncheck:
-
go version
-
go install golang.org/x/vuln/cmd/govulncheck@latest
-
govulncheck ./...
amd64
:
extends
:
.docker-build
build-dev
:
extends
:
.docker-build
-dev
stage
:
build
tags
:
-
amd64-docker
-
$RUNNER_AMD
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
!=
"main"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"'
manifest
:
extends
:
.manifest-amd64
stage
:
manifest
build-stg
:
extends
:
.docker-build-dev
stage
:
build
tags
:
-
$RUNNER_AMD
rules
:
-
if
:
'
$CI_COMMIT_TAG'
cloud
:
extends
:
.manifest-cloud
stage
:
manifest
deploy-dev
:
extends
:
.deploy-dev
stage
:
trigger-deploy
needs
:
-
job
:
build-dev
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
!=
"main"
&&
$CI_PIPELINE_SOURCE
!=
"merge_request_event"'
release
:
extends
:
.manifest-release
stage
:
manifest
deploy-stg
:
extends
:
.deploy-stg
stage
:
trigger-deploy
needs
:
-
job
:
build-stg
rules
:
-
if
:
'
$CI_COMMIT_TAG'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment