diff --git a/.github/workflows/use-ks-gh-custom.yaml b/.github/workflows/use-ks-gh-custom.yaml index 825d7b6..9e7e016 100644 --- a/.github/workflows/use-ks-gh-custom.yaml +++ b/.github/workflows/use-ks-gh-custom.yaml @@ -16,6 +16,9 @@ on: inlineSet: required: false type: string + kubeconfig: + required: false + type: string secrets: KUBECONFIG: required: true @@ -34,7 +37,7 @@ jobs: - uses: socialgouv/kontinuous/.github/actions/deploy-via-github@v1 with: - kubeconfig: ${{ secrets.KUBECONFIG }} + kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }} chart: ${{ inputs.chart }} ignoreProjectTemplates: ${{ inputs.ignoreProjectTemplates }} environment: ${{ inputs.environment }} diff --git a/.github/workflows/use-ks-gh-deactivate.yaml b/.github/workflows/use-ks-gh-deactivate.yaml index 5bf7ebd..74ec069 100644 --- a/.github/workflows/use-ks-gh-deactivate.yaml +++ b/.github/workflows/use-ks-gh-deactivate.yaml @@ -11,6 +11,9 @@ on: inlineSet: required: false type: string + kubeconfig: + required: false + type: string secrets: KUBECONFIG: required: true @@ -31,7 +34,7 @@ jobs: id: deployment continue-on-error: true with: - kubeconfig: ${{ secrets.KUBECONFIG }} + kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }} chart: deactivate ignoreProjectTemplates: ${{ inputs.ignoreProjectTemplates }} inlineValues: ${{ inputs.inlineValues }} diff --git a/.github/workflows/use-ks-gh-manual.yaml b/.github/workflows/use-ks-gh-manual.yaml index 03858bd..46e6805 100644 --- a/.github/workflows/use-ks-gh-manual.yaml +++ b/.github/workflows/use-ks-gh-manual.yaml @@ -16,6 +16,9 @@ on: inlineSet: required: false type: string + kubeconfig: + required: false + type: string secrets: KUBECONFIG: required: true @@ -34,7 +37,7 @@ jobs: - uses: socialgouv/kontinuous/.github/actions/deploy-via-github@v1 with: - kubeconfig: ${{ secrets.KUBECONFIG }} + kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }} chart: ${{ inputs.chart }} ignoreProjectTemplates: ${{ inputs.ignoreProjectTemplates }} environment: ${{ inputs.environment }} diff --git a/.github/workflows/use-ks-gh-preproduction.yaml b/.github/workflows/use-ks-gh-preproduction.yaml index 21aebb0..d91a8fa 100644 --- a/.github/workflows/use-ks-gh-preproduction.yaml +++ b/.github/workflows/use-ks-gh-preproduction.yaml @@ -30,7 +30,7 @@ jobs: id: deployment continue-on-error: true with: - kubeconfig: ${{ secrets.KUBECONFIG }} + kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }} environment: preprod deployWriteOutputFile: "true" sentryDSN: ${{ secrets.KS_SENTRY_DSN }} diff --git a/.github/workflows/use-ks-gh-production.yaml b/.github/workflows/use-ks-gh-production.yaml index 66f28a2..008737e 100644 --- a/.github/workflows/use-ks-gh-production.yaml +++ b/.github/workflows/use-ks-gh-production.yaml @@ -30,7 +30,7 @@ jobs: id: deployment continue-on-error: true with: - kubeconfig: ${{ secrets.KUBECONFIG }} + kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }} environment: prod deployWriteOutputFile: "true" sentryDSN: ${{ secrets.KS_SENTRY_DSN }} diff --git a/.github/workflows/use-ks-gh-review-auto.yaml b/.github/workflows/use-ks-gh-review-auto.yaml index ccc67ea..c1cce90 100644 --- a/.github/workflows/use-ks-gh-review-auto.yaml +++ b/.github/workflows/use-ks-gh-review-auto.yaml @@ -30,7 +30,7 @@ jobs: id: deployment continue-on-error: true with: - kubeconfig: ${{ secrets.KUBECONFIG }} + kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }} environment: dev deployWriteOutputFile: "true" sentryDSN: ${{ secrets.KS_SENTRY_DSN }} diff --git a/.github/workflows/use-ks-gh-review.yaml b/.github/workflows/use-ks-gh-review.yaml index 134e541..de19b81 100644 --- a/.github/workflows/use-ks-gh-review.yaml +++ b/.github/workflows/use-ks-gh-review.yaml @@ -30,7 +30,7 @@ jobs: id: deployment continue-on-error: true with: - kubeconfig: ${{ secrets.KUBECONFIG }} + kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }} environment: dev deployWriteOutputFile: "true" sentryDSN: ${{ secrets.KS_SENTRY_DSN }}