diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 902bf3f..101b677 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -23,6 +23,11 @@ on: required: false default: false type: boolean + helmfile_env: + description: "Optional JSON object string of environment variables for Helmfile" + required: false + default: "{}" + type: string jobs: detect-service-type: @@ -119,6 +124,7 @@ jobs: uses: helmfile/helmfile-action@02671705b1dda1dc4b0a4ddd4f9f1ea8f4568c6f # v2.4.3 with: helmfile-args: apply + env: ${{ fromJSON(inputs.helmfile_env) }} # Summary job that always runs to show what was deployed deployment-summary: diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 42a249f..3513ddc 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -18,6 +18,11 @@ on: required: false default: false type: boolean + helmfile_env: + description: "Optional JSON object string of environment variables for Helmfile" + required: false + default: "{}" + type: string jobs: detect-service-type: @@ -93,11 +98,12 @@ jobs: uses: helmfile/helmfile-action@02671705b1dda1dc4b0a4ddd4f9f1ea8f4568c6f # v2.4.3 with: helmfile-args: diff + env: ${{ fromJSON(inputs.helmfile_env) }} # Summary job that always runs to show what was validated ci-summary: runs-on: ubuntu-latest - needs: [ detect-service-type, validate-k8s, validate-helm ] + needs: [detect-service-type, validate-k8s, validate-helm] if: always() steps: - name: CI Summary