Skip to content

Commit

Permalink
add site_repo_url param
Browse files Browse the repository at this point in the history
  • Loading branch information
robertchoi80 committed Sep 16, 2021
1 parent c0aabde commit d6674ed
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions templates/argo-cd/createapp-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
value: "hanu-deploy-apps"
- name: app_name
value: "lma"
- name: repository_url
- name: manifest_repo_url
value: "https://github.com/openinfradev/decapod-manifests"
- name: revision
value: "main"
Expand Down Expand Up @@ -56,7 +56,7 @@ spec:
- name: NAMESPACE
value: "{{inputs.parameters.namespace}}"
- name: REPO
value: "{{workflow.parameters.repository_url}}"
value: "{{workflow.parameters.manifest_repo_url}}"
- name: REVISION
value: "{{workflow.parameters.revision}}"

Expand Down
4 changes: 3 additions & 1 deletion templates/decapod-apps/lma-uniformed-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ spec:
value: "hanu-reference"
- name: app_name
value: "lma"
- name: repository_url
- name: site_repo_url
value: "https://github.com/openinfradev/decapod-site"
- name: manifest_repo_url
value: "https://github.com/openinfradev/decapod-manifests"
- name: revision
value: main
Expand Down
2 changes: 1 addition & 1 deletion templates/decapod-apps/openstack-components-wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
value: "hanu-reference"
- name: app_name
value: "openstack"
- name: repository_url
- name: manifest_repo_url
value: "https://github.com/openinfradev/decapod-manifests"
- name: revision
value: main
Expand Down
2 changes: 1 addition & 1 deletion templates/decapod-apps/openstack-infra-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
value: "hanu-reference"
- name: app_name
value: "openstack"
- name: repository_url
- name: manifest_repo_url
value: "https://github.com/openinfradev/decapod-manifests"
- name: revision
value: main
Expand Down
2 changes: 1 addition & 1 deletion templates/decapod-apps/service-mesh-wf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
value: hanu-reference
- name: app_name
value: service-mesh
- name: repository_url
- name: manifest_repo_url
value: 'https://github.com/openinfradev/decapod-manifests'
- name: revision
value: main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
if not os.path.isdir(sitePath):
print("Cloning repository...")
repo = git.Repo.clone_from('https://github.com/robertchoi80/decapod-site', 'decapod-site')
repo = git.Repo.clone_from("{{workflow.parameters.site_repo_url}}", 'decapod-site')
with repo.config_writer() as git_config:
git_config.set_value('user', 'email', '[email protected]')
git_config.set_value('user', 'name', 'TKS Argo')
Expand Down

0 comments on commit d6674ed

Please sign in to comment.