Skip to content
Snippets Groups Projects
Verified Commit d2508b16 authored by Philipp S. Sommer's avatar Philipp S. Sommer
Browse files

make contextDir configurable

parent f64f0b63
No related branches found
No related tags found
1 merge request!41make contextDir configurable
Pipeline #366231 failed
......@@ -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: |
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment