Skip to content

Commit

Permalink
Template image creation
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Jan 18, 2023
1 parent 9d967aa commit 66255f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/proposals-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ jobs:

- name: Helm template
run: |
cat ../helm/configs/proposals/development/values.yaml >> ../helm/configs/proposals/values.yaml
helm template proposals --debug ../helm/charts/duo_facility_proposals -f ../helm/configs/proposals/values.yaml > /dev/null
helm template proposals --debug ../helm/charts/duo_facility_proposals --values=../helm/configs/proposals/values.yaml --values=../helm/configs/proposals/development/values.yaml > /dev/null
- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/duo_facility_proposals/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
restartPolicy: {{ $.Values.cronjob.restartPolicy }}
containers:
- name: {{ include "duo_facility_proposals.resource_name" $facility }}
image: {{ $.Values.image.repository }}:{{ $.Values.image.tag }}
image: {{ tpl $.Values.image.repository $ }}:{{ tpl $.Values.image.tag $ }}
imagePullPolicy: {{ $.Values.image.pullPolicy }}
command: [python]
args:
Expand Down
6 changes: 3 additions & 3 deletions helm/configs/proposals/development/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
secrets:
image:
repository: busybox
tag: latest

ciRepository: busybox
ciTag: latest

0 comments on commit 66255f2

Please sign in to comment.