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
3d932e35
Commit
3d932e35
authored
2 years ago
by
Tancho Mihov
Browse files
Options
Downloads
Plain Diff
Merge branch 'add-cicd' into 'main'
Add cicd See merge request
!5
parents
9da70a3e
e1158a9f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!5
Add cicd
Pipeline
#51851
passed
2 years ago
Stage: test
Stage: build
Stage: manifest
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+36
-7
36 additions, 7 deletions
.gitlab-ci.yml
with
36 additions
and
7 deletions
.gitlab-ci.yml
+
36
−
7
View file @
3d932e35
variables
:
APP_HELM_NAME
:
cache
DOCKER_FILE
:
deployment/ci/Dockerfile
GOOGLE_IMAGE
:
${GOOGLE_LIGHT_REGISTRY_URL}/gaiax/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
stages
:
-
compile
-
test
-
build
-
manifest
-
deploy
before_script
:
-
ln -s /builds /go/src/code.vereign.com
-
cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
include
:
-
project
:
'
gaiax/tsa/ci-helpers'
file
:
'
docker-build.yml'
-
template
:
'
Workflows/Branch-Pipelines.gitlab-ci.yml'
lint
:
image
:
golangci/golangci-lint:v1.44.2
...
...
@@ -13,13 +23,32 @@ lint:
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:1.17.7
extends
:
.gotest
stage
:
test
tags
:
-
amd64-docker
script
:
-
go version
-
go test -race ./... -coverprofile=coverage.out
-
go tool cover -func=coverage.out
before_script
:
[]
amd64
:
extends
:
.docker-build
stage
:
build
tags
:
-
amd64-docker
manifest
:
extends
:
.manifest-amd64
stage
:
manifest
cloud
:
extends
:
.manifest-cloud
stage
:
manifest
release
:
extends
:
.manifest-release
stage
:
manifest
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