@@ -17,105 +17,105 @@ on:
17
17
description : " ID of your container namespace"
18
18
value : ${{ jobs.deploy.outputs.scw_namespace_id }}
19
19
20
- jobs :
21
- deploy-scaleway-container :
22
- runs-on : ubuntu-latest
23
- name : deploy scaleway serverless container
24
- steps :
25
- # To use this repository's private action,
26
- # you must check out the repository
27
- - name : Checkout
28
- uses : actions/checkout@v2
20
+ # jobs:
21
+ # deploy-scaleway-container:
22
+ # runs-on: ubuntu-latest
23
+ # name: deploy scaleway serverless container
24
+ # steps:
25
+ # # To use this repository's private action,
26
+ # # you must check out the repository
27
+ # - name: Checkout
28
+ # uses: actions/checkout@v2
29
29
30
- - name : Export custom variables
31
- run : |
32
- SAFE_GITHUB_HEAD_REF_SLUG_URL=$(echo $GITHUB_HEAD_REF | rev | cut -c-37 | rev)
33
- ([[ $GITHUB_REF == 'refs/heads/main' ]] && echo "BRANCH_SLUG=main" || echo "BRANCH_SLUG=$SAFE_GITHUB_HEAD_REF_SLUG_URL") >> $GITHUB_ENV
34
- - uses : hmarr/debug-action@v2
30
+ # - name: Export custom variables
31
+ # run: |
32
+ # SAFE_GITHUB_HEAD_REF_SLUG_URL=$(echo $GITHUB_HEAD_REF | rev | cut -c-37 | rev)
33
+ # ([[ $GITHUB_REF == 'refs/heads/main' ]] && echo "BRANCH_SLUG=main" || echo "BRANCH_SLUG=$SAFE_GITHUB_HEAD_REF_SLUG_URL") >> $GITHUB_ENV
34
+ # - uses: hmarr/debug-action@v2
35
35
36
- - name : Start deployment
37
-
38
- id : deployment
39
- with :
40
- step : start
41
- token : ${{ secrets.GH_TOKEN }}
42
- env : ${{ env.BRANCH_SLUG }}
43
- ref : ${{ github.head_ref }}
44
- debug : true
36
+ # - name: Start deployment
37
+ # uses: bobheadxi/[email protected]
38
+ # id: deployment
39
+ # with:
40
+ # step: start
41
+ # token: ${{ secrets.GH_TOKEN }}
42
+ # env: ${{ env.BRANCH_SLUG }}
43
+ # ref: ${{ github.head_ref }}
44
+ # debug: true
45
45
46
- - name : Scaleway Container Deploy action
47
- id : deploy
48
- uses : ./ # Uses an action in the root directory
49
- with :
50
- type : deploy
51
- scw_access_key : ${{ secrets.ACCESS_KEY }}
52
- scw_secret_key : ${{ secrets.SECRET_KEY }}
53
- scw_containers_namespace_id : ae28eaf1-3b94-4660-bce0-9b0e0a5d1062
54
- scw_registry : rg.fr-par.scw.cloud/aphilibeaux/scaleway-form:latest
55
- scw_dns : containers.philibeaux.fr
56
- root_zone : true
46
+ # - name: Scaleway Container Deploy action
47
+ # id: deploy
48
+ # uses: ./ # Uses an action in the root directory
49
+ # with:
50
+ # type: deploy
51
+ # scw_access_key: ${{ secrets.ACCESS_KEY }}
52
+ # scw_secret_key: ${{ secrets.SECRET_KEY }}
53
+ # scw_containers_namespace_id: ae28eaf1-3b94-4660-bce0-9b0e0a5d1062
54
+ # scw_registry: rg.fr-par.scw.cloud/aphilibeaux/scaleway-form:latest
55
+ # scw_dns: containers.philibeaux.fr
56
+ # root_zone: true
57
57
58
- - name : check output
59
- shell : bash
60
- run : |
61
- echo "${{ steps.deploy.outputs.url }}"
62
- echo "${{ steps.deploy.outputs.container_url }}"
63
- echo "${{ steps.deploy.outputs.scw_container_id }}"
64
- echo "${{ steps.deploy.outputs.scw_namespace_id }}"
58
+ # - name: check output
59
+ # shell: bash
60
+ # run: |
61
+ # echo "${{ steps.deploy.outputs.url }}"
62
+ # echo "${{ steps.deploy.outputs.container_url }}"
63
+ # echo "${{ steps.deploy.outputs.scw_container_id }}"
64
+ # echo "${{ steps.deploy.outputs.scw_namespace_id }}"
65
65
66
- - name : Update deployment status
67
-
68
- if : always()
69
- with :
70
- debug : true
71
- step : finish
72
- env : ${{ env.BRANCH_SLUG }}
73
- token : ${{ secrets.GH_TOKEN }}
74
- status : ${{ job.status }}
75
- deployment_id : ${{ steps.deployment.outputs.deployment_id }}
76
- env_url : ${{ steps.deploy.outputs.url }}
66
+ # - name: Update deployment status
67
+ # uses: bobheadxi/[email protected]
68
+ # if: always()
69
+ # with:
70
+ # debug: true
71
+ # step: finish
72
+ # env: ${{ env.BRANCH_SLUG }}
73
+ # token: ${{ secrets.GH_TOKEN }}
74
+ # status: ${{ job.status }}
75
+ # deployment_id: ${{ steps.deployment.outputs.deployment_id }}
76
+ # env_url: ${{ steps.deploy.outputs.url }}
77
77
78
- teardown-scaleway-container :
79
- name : teardown scaleway serverless container
80
- needs : deploy-scaleway-container
81
- runs-on : ubuntu-latest
82
- steps :
83
- # To use this repository's private action,
84
- # you must check out the repository
85
- - name : Checkout
86
- uses : actions/checkout@v2
78
+ # teardown-scaleway-container:
79
+ # name: teardown scaleway serverless container
80
+ # needs: deploy-scaleway-container
81
+ # runs-on: ubuntu-latest
82
+ # steps:
83
+ # # To use this repository's private action,
84
+ # # you must check out the repository
85
+ # - name: Checkout
86
+ # uses: actions/checkout@v2
87
87
88
- - name : Export custom variables
89
- run : |
90
- SAFE_GITHUB_HEAD_REF_SLUG_URL=$(echo $GITHUB_HEAD_REF | rev | cut -c-37 | rev)
91
- ([[ $GITHUB_REF == 'refs/heads/main' ]] && echo "BRANCH_SLUG=main" || echo "BRANCH_SLUG=$SAFE_GITHUB_HEAD_REF_SLUG_URL") >> $GITHUB_ENV
92
- - uses : hmarr/debug-action@v2
88
+ # - name: Export custom variables
89
+ # run: |
90
+ # SAFE_GITHUB_HEAD_REF_SLUG_URL=$(echo $GITHUB_HEAD_REF | rev | cut -c-37 | rev)
91
+ # ([[ $GITHUB_REF == 'refs/heads/main' ]] && echo "BRANCH_SLUG=main" || echo "BRANCH_SLUG=$SAFE_GITHUB_HEAD_REF_SLUG_URL") >> $GITHUB_ENV
92
+ # - uses: hmarr/debug-action@v2
93
93
94
- - name : Scaleway Container Teardown action
95
- id : deploy
96
- uses : ./ # Uses an action in the root directory
97
- with :
98
- type : teardown
99
- scw_access_key : ${{ secrets.ACCESS_KEY }}
100
- scw_secret_key : ${{ secrets.SECRET_KEY }}
101
- scw_containers_namespace_id : ae28eaf1-3b94-4660-bce0-9b0e0a5d1062
102
- scw_registry : rg.fr-par.scw.cloud/aphilibeaux/scaleway-form:latest
103
- scw_dns : containers.philibeaux.fr
104
- root_zone : true
94
+ # - name: Scaleway Container Teardown action
95
+ # id: deploy
96
+ # uses: ./ # Uses an action in the root directory
97
+ # with:
98
+ # type: teardown
99
+ # scw_access_key: ${{ secrets.ACCESS_KEY }}
100
+ # scw_secret_key: ${{ secrets.SECRET_KEY }}
101
+ # scw_containers_namespace_id: ae28eaf1-3b94-4660-bce0-9b0e0a5d1062
102
+ # scw_registry: rg.fr-par.scw.cloud/aphilibeaux/scaleway-form:latest
103
+ # scw_dns: containers.philibeaux.fr
104
+ # root_zone: true
105
105
106
- - name : check output
107
- shell : bash
108
- run : |
109
- echo "${{ steps.deploy.outputs.url }}"
110
- echo "${{ steps.deploy.outputs.container_url }}"
111
- echo "${{ steps.deploy.outputs.scw_container_id }}"
112
- echo "${{ steps.deploy.outputs.scw_namespace_id }}"
106
+ # - name: check output
107
+ # shell: bash
108
+ # run: |
109
+ # echo "${{ steps.deploy.outputs.url }}"
110
+ # echo "${{ steps.deploy.outputs.container_url }}"
111
+ # echo "${{ steps.deploy.outputs.scw_container_id }}"
112
+ # echo "${{ steps.deploy.outputs.scw_namespace_id }}"
113
113
114
- - name : Update deployment status
115
-
116
- if : always()
117
- with :
118
- debug : true
119
- step : delete-env
120
- token : ${{ secrets.GH_TOKEN }}
121
- env : ${{ env.BRANCH_SLUG }}
114
+ # - name: Update deployment status
115
+ # uses: bobheadxi/[email protected]
116
+ # if: always()
117
+ # with:
118
+ # debug: true
119
+ # step: delete-env
120
+ # token: ${{ secrets.GH_TOKEN }}
121
+ # env: ${{ env.BRANCH_SLUG }}
0 commit comments