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
ae70bbfa
Commit
ae70bbfa
authored
10 months ago
by
Charlotte Hausman
Committed by
Sam Kagan
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix build and push stages to honor shared changes
parent
2219f765
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+6
-0
6 additions, 0 deletions
.gitlab-ci.yml
ci/build.template.yml
+5
-0
5 additions, 0 deletions
ci/build.template.yml
ci/push.template.yml
+4
-0
4 additions, 0 deletions
ci/push.template.yml
with
15 additions
and
0 deletions
.gitlab-ci.yml
+
6
−
0
View file @
ae70bbfa
...
...
@@ -189,6 +189,7 @@ build workflow:
variables
:
SERVICE_NAME
:
"
workflow"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
extends
:
.build
build capability
:
...
...
@@ -197,6 +198,7 @@ build capability:
variables
:
SERVICE_NAME
:
"
capability"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
extends
:
.build
build notification
:
...
...
@@ -205,6 +207,7 @@ build notification:
variables
:
SERVICE_NAME
:
"
notification"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
extends
:
.build
build web
:
...
...
@@ -307,6 +310,7 @@ push workflow:
variables
:
SERVICE_NAME
:
"
workflow"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
extends
:
.push
push capability
:
...
...
@@ -314,6 +318,7 @@ push capability:
variables
:
SERVICE_NAME
:
"
capability"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
extends
:
.push
push notification
:
...
...
@@ -321,6 +326,7 @@ push notification:
variables
:
SERVICE_NAME
:
"
notification"
PATH_PREFIX
:
"
services/"
PATH_PREFIX2
:
"
shared/workspaces/workspaces/"
extends
:
.push
push web
:
...
...
This diff is collapsed.
Click to expand it.
ci/build.template.yml
+
5
−
0
View file @
ae70bbfa
...
...
@@ -18,6 +18,7 @@
DEPLOY_ENV
:
"
dev"
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
variables
:
IMAGE_TAG
:
$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
...
...
@@ -25,6 +26,7 @@
DEPLOY_ENV
:
"
dev"
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
-
if
:
'
$CI_COMMIT_TAG
=~
/^end-of-sprint-[0-9]+/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
...
...
@@ -33,6 +35,7 @@
DEPLOY_ENV
:
"
test"
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
-
if
:
'
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/
||
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+\.[0.9]+-rc[0-9]+/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
...
...
@@ -41,6 +44,7 @@
DEPLOY_ENV
:
"
test"
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
-
if
:
'
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+$/
||
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
...
...
@@ -49,3 +53,4 @@
DEPLOY_ENV
:
"
prod"
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
This diff is collapsed.
Click to expand it.
ci/push.template.yml
+
4
−
0
View file @
ae70bbfa
...
...
@@ -10,21 +10,25 @@
IMAGE_TAG
:
$CI_COMMIT_BRANCH
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
# For pipeline testing only!
# - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# variables:
# IMAGE_TAG: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
# changes:
# - ${PATH_PREFIX}${SERVICE_NAME}/**/*
# - ${PATH_PREFIX2}${SERVICE_NAME}/*
-
if
:
'
$CI_COMMIT_TAG
=~
/^end-of-sprint-[0-9]+/
||
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/
||
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+\.[0.9]+-rc[0-9]+/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
-
if
:
'
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+$/
||
$CI_COMMIT_TAG
=~
/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/'
variables
:
IMAGE_TAG
:
$CI_COMMIT_TAG
changes
:
-
${PATH_PREFIX}${SERVICE_NAME}/**/*
-
${PATH_PREFIX2}${SERVICE_NAME}/*
dependencies
:
[]
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