pass env args to helm
This commit is contained in:
@@ -23,6 +23,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
helmfile_env:
|
||||||
|
description: "Optional JSON object string of environment variables for Helmfile"
|
||||||
|
required: false
|
||||||
|
default: "{}"
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
detect-service-type:
|
detect-service-type:
|
||||||
@@ -119,6 +124,7 @@ jobs:
|
|||||||
uses: helmfile/helmfile-action@02671705b1dda1dc4b0a4ddd4f9f1ea8f4568c6f # v2.4.3
|
uses: helmfile/helmfile-action@02671705b1dda1dc4b0a4ddd4f9f1ea8f4568c6f # v2.4.3
|
||||||
with:
|
with:
|
||||||
helmfile-args: apply
|
helmfile-args: apply
|
||||||
|
env: ${{ fromJSON(inputs.helmfile_env) }}
|
||||||
|
|
||||||
# Summary job that always runs to show what was deployed
|
# Summary job that always runs to show what was deployed
|
||||||
deployment-summary:
|
deployment-summary:
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
helmfile_env:
|
||||||
|
description: "Optional JSON object string of environment variables for Helmfile"
|
||||||
|
required: false
|
||||||
|
default: "{}"
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
detect-service-type:
|
detect-service-type:
|
||||||
@@ -93,11 +98,12 @@ jobs:
|
|||||||
uses: helmfile/helmfile-action@02671705b1dda1dc4b0a4ddd4f9f1ea8f4568c6f # v2.4.3
|
uses: helmfile/helmfile-action@02671705b1dda1dc4b0a4ddd4f9f1ea8f4568c6f # v2.4.3
|
||||||
with:
|
with:
|
||||||
helmfile-args: diff
|
helmfile-args: diff
|
||||||
|
env: ${{ fromJSON(inputs.helmfile_env) }}
|
||||||
|
|
||||||
# Summary job that always runs to show what was validated
|
# Summary job that always runs to show what was validated
|
||||||
ci-summary:
|
ci-summary:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ detect-service-type, validate-k8s, validate-helm ]
|
needs: [detect-service-type, validate-k8s, validate-helm]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: CI Summary
|
- name: CI Summary
|
||||||
|
|||||||
Reference in New Issue
Block a user