File tree Expand file tree Collapse file tree 3 files changed +15
-37
lines changed Expand file tree Collapse file tree 3 files changed +15
-37
lines changed Original file line number Diff line number Diff line change @@ -25,23 +25,15 @@ jobs:
25
25
imageName : 1000jours/strapi
26
26
token : ${{ secrets.GITHUB_TOKEN }}
27
27
dockerfile : ./back/strapi/Dockerfile
28
+ semver : ' true'
28
29
29
30
# #############################################################################
30
31
# # DEPLOY PREPRODUCTION APPLICATION
31
32
# #############################################################################
32
33
deploy-preprod :
33
34
name : Deploy preproduction
34
- runs-on : ubuntu-latest
35
35
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
Original file line number Diff line number Diff line change @@ -25,23 +25,15 @@ jobs:
25
25
imageName : 1000jours/strapi
26
26
token : ${{ secrets.GITHUB_TOKEN }}
27
27
dockerfile : ./back/strapi/Dockerfile
28
+ semver : " true"
28
29
29
30
# #############################################################################
30
31
# # DEPLOY PRODUCTION APPLICATION
31
32
# #############################################################################
32
33
deploy-prod :
33
34
name : Deploy production
34
- runs-on : ubuntu-latest
35
35
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
Original file line number Diff line number Diff line change @@ -34,18 +34,12 @@ jobs:
34
34
# #############################################################################
35
35
deploy :
36
36
name : Deploy review branch
37
- runs-on : ubuntu-latest
38
37
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
+
49
43
# #############################################################################
50
44
# # RESTORE DATABASE
51
45
# #############################################################################
You can’t perform that action at this time.
0 commit comments