Skip to content

Commit 8cd7dc8

Browse files
committed
chore(airflow): add git config
1 parent 5e9c34c commit 8cd7dc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

addons/airflow/2/chart/airflow/templates/_git_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ Usage:
100100
. /opt/drycc/scripts/libfs.sh
101101
{{- if .context.Values.git.dags.enabled }}
102102
{{- range .context.Values.git.dags.repositories }}
103-
is_dir_empty "/dags/{{ include "airflow.git.repository.name" . }}" && git clone {{ .repository }} --branch {{ .branch }} /dags/{{ include "airflow.git.repository.name" . }}
103+
is_dir_empty "/dags/{{ include "airflow.git.repository.name" . }}" && git clone {{ .repository }} --branch {{ .branch }} /dags/{{ include "airflow.git.repository.name" . }} && cd /dags/{{ include "airflow.git.repository.name" . }} && git config pull.rebase true
104104
{{- end }}
105105
{{- end }}
106106
{{- if .context.Values.git.plugins.enabled }}
107107
{{- range .context.Values.git.plugins.repositories }}
108-
is_dir_empty "/plugins/{{ include "airflow.git.repository.name" . }}" && git clone {{ .repository }} --branch {{ .branch }} /plugins/{{ include "airflow.git.repository.name" . }}
108+
is_dir_empty "/plugins/{{ include "airflow.git.repository.name" . }}" && git clone {{ .repository }} --branch {{ .branch }} /plugins/{{ include "airflow.git.repository.name" . }} cd /plugins/{{ include "airflow.git.repository.name" . }} && git config pull.rebase true
109109
{{- end }}
110110
{{- end }}
111111
{{- end }}

0 commit comments

Comments
 (0)