Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
Hereon Helm Chart
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
Service Desk
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
HCDC
Software Templates
Hereon Helm Chart
Commits
d2508b16
Verified
Commit
d2508b16
authored
11 months ago
by
Philipp S. Sommer
Browse files
Options
Downloads
Patches
Plain Diff
make contextDir configurable
parent
f64f0b63
No related branches found
Branches containing commit
No related tags found
1 merge request
!41
make contextDir configurable
Pipeline
#366231
failed
11 months ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
{{cookiecutter.project_slug}}/templates/{{cookiecutter.template_base_name}}/buildconfig.yaml
+2
-2
2 additions, 2 deletions
...ates/{{cookiecutter.template_base_name}}/buildconfig.yaml
{{cookiecutter.project_slug}}/values.yaml
+10
-0
10 additions, 0 deletions
{{cookiecutter.project_slug}}/values.yaml
with
12 additions
and
2 deletions
{{cookiecutter.project_slug}}/templates/{{cookiecutter.template_base_name}}/buildconfig.yaml
+
2
−
2
View file @
d2508b16
...
...
@@ -26,10 +26,10 @@ spec:
sourceSecret
:
name
:
k8sgitlab
{
%
- if stages %
}{
%
raw %
}{{
- if eq $stage "staging"
}}{
%
endraw %
}{
%
endif %
}
contextDir
:
"
docker/{{
cookiecutter.template_base_name
}
}"
contextDir
:
"
{%
raw
%}{{
$.Values.contextDir
}}{%
endraw
%
}"
{
%
- if stages %
}
{
%
raw %
}{{
- else if eq $stage "test"
}}{
%
endraw %
}
contextDir
:
"
docker/{{
cookiecutter.template_base_name
}}/tests
"
contextDir
:
"
{%
raw
%}{{
$.Values.testContextDir
}}{%
endraw
%}
"
{
%
raw %
}{{
- end
}}{
%
endraw %
}
{
%
raw %
}{{
- else
}}{
%
endraw %
}
dockerfile
:
|
...
...
This diff is collapsed.
Click to expand it.
{{cookiecutter.project_slug}}/values.yaml
+
10
−
0
View file @
d2508b16
...
...
@@ -68,6 +68,16 @@ buildTriggers: []
# - imageChange: {}
# type: ImageChange
# directory in the git repository where the Dockerfile is located
contextDir
:
"
docker/{{
cookiecutter.template_base_name
}}"
{
%
- if cookiecutter.include_build_test_stage == "yes" %
}
# directory in the git repository where the Dockerfile for the test setup is
# located
testContextDir
:
"
docker/{{
cookiecutter.template_base_name
}}/tests"
{
%
- endif %
}
{
%
- if cookiecutter.include_build_test_stage == "yes" %
}
# testStagePostCommit contains the command to run when the image from the
...
...
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