Skip to content

Commit

Permalink
fix: revert
Browse files Browse the repository at this point in the history
devthejo committed Mar 25, 2024
1 parent 848af79 commit 302ba7f
Showing 5 changed files with 70 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/use-ks-gh-preproduction.yaml
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ on:
kubeconfigContext:
required: false
type: string


jobs:
deploy:
@@ -26,6 +27,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- uses: socialgouv/workflows/actions/deployment-starting@v1
id: deployment-starting
with:
token: ${{ secrets.GITHUB_TOKEN }}
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
environment-scope: preproduction

- uses: socialgouv/kontinuous/.github/actions/deploy-via-github@v1
id: deployment
continue-on-error: true
@@ -39,6 +47,16 @@ jobs:
projectName: ${{ vars.KS_PROJECT_NAME }}
ciNamespace: ${{ vars.KS_CI_NAMESPACE }}

- uses: socialgouv/workflows/actions/deployment-ending@v1
id: deployment-ending
with:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
17 changes: 17 additions & 0 deletions .github/workflows/use-ks-gh-production.yaml
Original file line number Diff line number Diff line change
@@ -26,6 +26,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- uses: socialgouv/workflows/actions/deployment-starting@v1
id: deployment-starting
with:
token: ${{ secrets.GITHUB_TOKEN }}
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
environment-scope: production

- uses: socialgouv/kontinuous/.github/actions/deploy-via-github@v1
id: deployment
continue-on-error: true
@@ -39,6 +46,16 @@ jobs:
projectName: ${{ vars.KS_PROJECT_NAME }}
ciNamespace: ${{ vars.KS_CI_NAMESPACE }}

- uses: socialgouv/workflows/actions/deployment-ending@v1
id: deployment-ending
with:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
17 changes: 17 additions & 0 deletions .github/workflows/use-ks-gh-review-auto.yaml
Original file line number Diff line number Diff line change
@@ -26,6 +26,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- uses: socialgouv/workflows/actions/deployment-starting@v1
id: deployment-starting
with:
token: ${{ secrets.GITHUB_TOKEN }}
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
environment-scope: review

- uses: socialgouv/kontinuous/.github/actions/deploy-via-github@v1
id: deployment
continue-on-error: true
@@ -39,6 +46,16 @@ jobs:
projectName: ${{ vars.KS_PROJECT_NAME }}
ciNamespace: ${{ vars.KS_CI_NAMESPACE }}

- uses: socialgouv/workflows/actions/deployment-ending@v1
id: deployment-ending
with:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
17 changes: 17 additions & 0 deletions .github/workflows/use-ks-gh-review.yaml
Original file line number Diff line number Diff line change
@@ -26,6 +26,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- uses: socialgouv/workflows/actions/deployment-starting@v1
id: deployment-starting
with:
token: ${{ secrets.GITHUB_TOKEN }}
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
environment-scope: review

- uses: socialgouv/kontinuous/.github/actions/deploy-via-github@v1
id: deployment
continue-on-error: true
@@ -39,6 +46,16 @@ jobs:
projectName: ${{ vars.KS_PROJECT_NAME }}
ciNamespace: ${{ vars.KS_CI_NAMESPACE }}

- uses: socialgouv/workflows/actions/deployment-ending@v1
id: deployment-ending
with:
pat: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.deployment-starting.outputs.deployment-id }}
deployment-name: ${{ steps.deployment-starting.outputs.deployment-name }}
deployment-ok: ${{ steps.deployment.outcome == 'success' && 'true' || 'false' }}
provider: ${{ steps.deployment.outputs.provider }}

trivy:
name: 🕵️ Trivy vulnerability scanner
needs: [deploy]
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ jobs:
token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}

- name: sync-major-version-branch
uses: socialgouv/workflows/actions/release-deeplink-version@master
uses: socialgouv/workflows/actions/release-deeplink-version@v1
env:
GIT_AUTHOR_EMAIL: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.SOCIALGROOVYBOT_NAME }}

0 comments on commit 302ba7f

Please sign in to comment.