Skip to content

Commit d53e6c8

Browse files
committed
service account and comment
1 parent ff38ee2 commit d53e6c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

workflow/workflow.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ spec:
8888

8989
# Update image in repo using kustomize
9090
- name: select-parameters
91+
serviceAccountName: argo-hub.git.0.0.2
9192
inputs:
9293
artifacts:
9394
- name: repo
@@ -151,14 +152,15 @@ spec:
151152
artifacts:
152153
- name: repo
153154
path: /tmp/repo
155+
# remove this s3 reference if using minio
154156
s3:
155157
key: /{{ workflow.name }}/changed
156158
script:
157159
image: ubuntu:20.04
158160
command: [ bash ]
159161
source: |
160162
repo_dir="{{ inputs.artifacts.repo.path }}"
161-
input_filepath="${repo_dir}/{{ inputs.parameters.TARGET_TEMPLATE_FILEPATH }}"
162-
output_filepath="${repo_dir}/{{ inputs.parameters.TARGET_OUTPUT_FILEPATH }}"
163+
input_filepath="${repo_dir}/{{ inputs.parameters.SEARCH_FILE }}"
164+
output_filepath="${repo_dir}/{{ inputs.parameters.OUTPUT_FILE }}"
163165
164166
sed "s/{{ inputs.parameters.SEARCH_STRING }}/{{ inputs.parameters.SEARCH_REPLACEMENT }}/g" ${input_filepath} | tee ${output_filepath}

0 commit comments

Comments
 (0)