Skip to content

Commit

Permalink
feat: kubeconfigContext
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Feb 7, 2024
1 parent c9bf0f6 commit 5962485
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/use-ks-gh-custom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
kubeconfig:
required: false
type: string
kubeconfigContext:
required: false
type: string
secrets:
KUBECONFIG:
required: true
Expand All @@ -38,6 +41,7 @@ jobs:
- uses: socialgouv/kontinuous/.github/actions/deploy-via-github@v1
with:
kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }}
kubeconfigContext: ${{ inputs.kubeconfigContext }}
chart: ${{ inputs.chart }}
ignoreProjectTemplates: ${{ inputs.ignoreProjectTemplates }}
environment: ${{ inputs.environment }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/use-ks-gh-deactivate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
kubeconfig:
required: false
type: string
kubeconfigContext:
required: false
type: string
secrets:
KUBECONFIG:
required: true
Expand All @@ -35,6 +38,7 @@ jobs:
continue-on-error: true
with:
kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }}
kubeconfigContext: ${{ inputs.kubeconfigContext }}
chart: deactivate
ignoreProjectTemplates: ${{ inputs.ignoreProjectTemplates }}
inlineValues: ${{ inputs.inlineValues }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/use-ks-gh-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
kubeconfig:
required: false
type: string
kubeconfigContext:
required: false
type: string
secrets:
KUBECONFIG:
required: true
Expand All @@ -38,6 +41,7 @@ jobs:
- uses: socialgouv/kontinuous/.github/actions/deploy-via-github@v1
with:
kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }}
kubeconfigContext: ${{ inputs.kubeconfigContext }}
chart: ${{ inputs.chart }}
ignoreProjectTemplates: ${{ inputs.ignoreProjectTemplates }}
environment: ${{ inputs.environment }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/use-ks-gh-preproduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
kubeconfig:
required: false
type: string
kubeconfigContext:
required: false
type: string


jobs:
Expand All @@ -36,6 +39,7 @@ jobs:
continue-on-error: true
with:
kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }}
kubeconfigContext: ${{ inputs.kubeconfigContext }}
environment: preprod
deployWriteOutputFile: "true"
sentryDSN: ${{ secrets.KS_SENTRY_DSN }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/use-ks-gh-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
kubeconfig:
required: false
type: string
kubeconfigContext:
required: false
type: string

jobs:
deploy:
Expand All @@ -35,6 +38,7 @@ jobs:
continue-on-error: true
with:
kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }}
kubeconfigContext: ${{ inputs.kubeconfigContext }}
environment: prod
deployWriteOutputFile: "true"
sentryDSN: ${{ secrets.KS_SENTRY_DSN }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/use-ks-gh-review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
kubeconfig:
required: false
type: string
kubeconfigContext:
required: false
type: string

jobs:
deploy:
Expand All @@ -35,6 +38,7 @@ jobs:
continue-on-error: true
with:
kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }}
kubeconfigContext: ${{ inputs.kubeconfigContext }}
environment: dev
deployWriteOutputFile: "true"
sentryDSN: ${{ secrets.KS_SENTRY_DSN }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/use-ks-gh-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
kubeconfig:
required: false
type: string
kubeconfigContext:
required: false
type: string

jobs:
deploy:
Expand All @@ -35,6 +38,7 @@ jobs:
continue-on-error: true
with:
kubeconfig: ${{ inputs.kubeconfig || secrets.KUBECONFIG }}
kubeconfigContext: ${{ inputs.kubeconfigContext }}
environment: dev
deployWriteOutputFile: "true"
sentryDSN: ${{ secrets.KS_SENTRY_DSN }}
Expand Down

0 comments on commit 5962485

Please sign in to comment.