Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
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
ssa
workspaces
Commits
ee067fe8
Commit
ee067fe8
authored
2 years ago
by
Nathan Bockisch
Browse files
Options
Downloads
Patches
Plain Diff
Added yaml and sh scripts to build go modules via CI
parent
1585524d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+19
-13
19 additions, 13 deletions
.gitlab-ci.yml
with
19 additions
and
13 deletions
.gitlab-ci.yml
+
19
−
13
View file @
ee067fe8
stages
:
-
build-base
-
push-base
-
cache-build
-
build
-
unit-test
-
test-coverage
-
push
-
deploy-coverage-page
#
- build-base
#
- push-base
#
- cache-build
#
- build
#
- unit-test
#
- test-coverage
#
- push
#
- deploy-coverage-page
-
generate-yaml
-
trigger
-
deploy
-
e2e-test
-
.post
#
- deploy
#
- e2e-test
#
- .post
variables
:
# Gitlab optimization https://docs.gitlab.com/ee/ci/large_repositories/
...
...
@@ -339,9 +339,12 @@ go generate yaml:
script
:
-
DEPLOY_ENV=${DEPLOY_ENV} ./ci/bin/generate-go-yaml.py
rules
:
-
if
:
$CI_MERGE_REQUEST_ID
changes
:
-
apps/cli/executables/go/**/*
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes
:
-
apps/cli/executables/
pexable
/**/*
-
apps/cli/executables/
go
/**/*
-
if
:
'
$CI_COMMIT_TAG
=~
/^end-of-sprint-[0-9]+/
||
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/'
variables
:
# override DEPLOY_ENV
...
...
@@ -351,7 +354,7 @@ go generate yaml:
DEPLOY_ENV
:
"
prod"
artifacts
:
paths
:
-
generated-
pex
-build-pipeline.yml
-
generated-
go
-build-pipeline.yml
# Trigger child pipeline based on generated go builder yaml
go child pipeline
:
...
...
@@ -362,6 +365,9 @@ go child pipeline:
job
:
go generate yaml
strategy
:
depend
rules
:
-
if
:
$CI_MERGE_REQUEST_ID
changes
:
-
apps/cli/executables/go/**/*
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes
:
-
apps/cli/executables/go/**/*
...
...
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