Skip to content

Commit 7d36ea5

Browse files
authored
chore: fix ci kontinuous deployment action (#1518)
* fix: up kontinuous action * fix: up kontinuous actions preprod and prod * fix: try to use webhook workflow * fix: preprod and prod workflows * fix: image tag semver * fix: input as string * fix: image tag semver
1 parent 7075381 commit 7d36ea5

File tree

3 files changed

+15
-37
lines changed

3 files changed

+15
-37
lines changed

.github/workflows/socialgouv-preproduction.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,15 @@ jobs:
2525
imageName: 1000jours/strapi
2626
token: ${{ secrets.GITHUB_TOKEN }}
2727
dockerfile: ./back/strapi/Dockerfile
28+
semver: 'true'
2829

2930
##############################################################################
3031
## DEPLOY PREPRODUCTION APPLICATION
3132
##############################################################################
3233
deploy-preprod:
3334
name: Deploy preproduction
34-
runs-on: ubuntu-latest
3535
needs: [register]
36-
environment:
37-
name: preproduction
38-
url: https://backoffice-1000jours-preprod.dev.fabrique.social.gouv.fr
39-
steps:
40-
- uses: SocialGouv/kontinuous@v1
41-
with:
42-
environment: preprod
43-
token: ${{ secrets.GITHUB_TOKEN }}
44-
kubeconfig: ${{ secrets.KUBECONFIG }}
45-
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
46-
ciNamespace: "${{ secrets.RANCHER_PROJECT_NAME }}-ci"
47-
disableDiff: "true"
36+
uses: socialgouv/kontinuous/.github/workflows/workflow-webhook.yaml@v1
37+
secrets: inherit
38+
with:
39+
triggerWebhook: true # comment this line when enabling webhook on repository

.github/workflows/socialgouv-production.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,15 @@ jobs:
2525
imageName: 1000jours/strapi
2626
token: ${{ secrets.GITHUB_TOKEN }}
2727
dockerfile: ./back/strapi/Dockerfile
28+
semver: "true"
2829

2930
##############################################################################
3031
## DEPLOY PRODUCTION APPLICATION
3132
##############################################################################
3233
deploy-prod:
3334
name: Deploy production
34-
runs-on: ubuntu-latest
3535
needs: [register]
36-
environment:
37-
name: production
38-
url: https://backoffice-les1000jours.fabrique.social.gouv.fr
39-
steps:
40-
- uses: SocialGouv/kontinuous@v1
41-
with:
42-
environment: prod
43-
token: ${{ secrets.GITHUB_TOKEN }}
44-
kubeconfig: ${{ secrets.KUBECONFIG }}
45-
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
46-
ciNamespace: "${{ secrets.RANCHER_PROJECT_NAME }}-ci"
47-
disableDiff: "true"
36+
uses: socialgouv/kontinuous/.github/workflows/workflow-gotoprod-manual.yaml@v1
37+
secrets: inherit
38+
with:
39+
triggerWebhook: true # comment this line when enabling webhook on repository

.github/workflows/socialgouv-review.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,12 @@ jobs:
3434
##############################################################################
3535
deploy:
3636
name: Deploy review branch
37-
runs-on: ubuntu-latest
3837
needs: [register]
39-
steps:
40-
- uses: SocialGouv/kontinuous@v1
41-
with:
42-
environment: dev
43-
token: ${{ secrets.GITHUB_TOKEN }}
44-
kubeconfig: ${{ secrets.KUBECONFIG }}
45-
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
46-
ciNamespace: "${{ secrets.RANCHER_PROJECT_NAME }}-ci"
47-
disableDiff: "true"
48-
38+
uses: socialgouv/kontinuous/.github/workflows/workflow-webhook.yaml@v1
39+
secrets: inherit
40+
with:
41+
triggerWebhook: true # comment this line when enabling webhook on repository
42+
4943
##############################################################################
5044
## RESTORE DATABASE
5145
##############################################################################

0 commit comments

Comments
 (0)