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

add option for automatic build

parent de6c29ff
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Your release is named {{ .Release.Name }}.
{%- if cookiecutter.install_basic_hereon_setup %}
{% raw %}
{{- if .Release.IsInstall }}
You now need to create secret with the name k8sgitlab containing an SSH-key.
Please create an ssh-keypair with
......@@ -24,4 +25,5 @@ Afterwards, you can trigger a build and the rollout with
{%- endraw %}
oc start-build {{ cookiecutter.template_base_name }}
{% raw %}{{- end }}{% endraw %}
{% endif %}
\ No newline at end of file
......@@ -2,7 +2,13 @@ apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: {{ cookiecutter.template_base_name }}
namespace: {% raw %}{{ .Values.global.openshiftNamespace }}{% endraw %}
{%- raw %}
namespace: {{ .Values.global.openshiftNamespace }}
{{- if .Values.alwaysRebuild }}
annotations:
rollme: {{ randAlphaNum 5 | quote }}
{{- end }}
{%- endraw %}
spec:
runPolicy: "Serial"
source:
......@@ -16,6 +22,7 @@ spec:
triggers:
- imageChange: {}
type: ImageChange
- type: ConfigChange
strategy:
type: Docker
dockerStrategy:
......
......@@ -15,4 +15,5 @@ global:
{% if cookiecutter.install_basic_hereon_setup %}
# the origin of the docker image to build
fromImage: {{ cookiecutter.template_base_name }}
alwaysRebuild: true
{% endif %}
\ No newline at end of file
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