Skip to content

Commit

Permalink
fix: using data value yml for boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed May 11, 2022
1 parent 74ce02b commit 0dd9f9f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,6 @@ jobs:
- name: K8s generates YAML
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
run: |
function boolean() {
case $1 in
TRUE) echo true ;;
FALSE) echo false ;;
*) echo "Err: Unknown boolean value \"$1\"" 1>&2; exit 1 ;;
esac
}
ytt \
-f ./.ff/deploy/as-k8s/service.schema.yml \
-f ./.ff/deploy/as-k8s/service.yml \
Expand All @@ -579,7 +572,7 @@ jobs:
--data-value containerRegistry=${{steps.deploy_setup.outputs.deploy_container_registry}} \
--data-value tag=${{steps.deploy_setup.outputs.deploy_tag}} \
--data-value pipelineControl.datetime=${{steps.deploy_setup.outputs.run_started_at}} \
--data-value pipelineControl.environmentsAsNamespaces=$(boolean ${{inputs.environmentsAsNamespaces}}) \
--data-value-yaml pipelineControl.environmentsAsNamespaces=$(boolean ${{inputs.environmentsAsNamespaces}}) \
> ./manifests/k8s-to-apply.yml
- name: Debug | Print k8s-to-apply.yml
Expand Down

0 comments on commit 0dd9f9f

Please sign in to comment.