File tree Expand file tree Collapse file tree 5 files changed +100
-68
lines changed Expand file tree Collapse file tree 5 files changed +100
-68
lines changed Original file line number Diff line number Diff line change 29
29
uses : ./.github/actions/slack
30
30
with :
31
31
message : " deploying ${{ inputs.image }} to ${{ inputs.environment }} :rocket:"
32
- webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
32
+ webhook_url : ${{ inputs.slack_webhook_url }}
33
33
- name : Deploy flyctl
34
34
shell : bash
35
35
run : |
@@ -49,11 +49,11 @@ runs:
49
49
uses : ./.github/actions/slack
50
50
with :
51
51
message : " :tada: Successfully deployed ${{ inputs.image }} to ${{ inputs.environment }} :white_check_mark:!"
52
- webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
52
+ webhook_url : ${{ inputs.slack_webhook_url }}
53
53
- name : Notify (failed deployment)
54
54
if : failure()
55
55
uses : ./.github/actions/slack
56
56
with :
57
57
message : " :fail: Failed to deploy to ${{ inputs.environment }} :red_flag:!"
58
- webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
58
+ webhook_url : ${{ inputs.slack_webhook_url }}
59
59
Original file line number Diff line number Diff line change
1
+ name : Deploy (staging)
2
+
3
+ on :
4
+ pull_request :
5
+ workflow_dispatch :
6
+
7
+ concurrency :
8
+ group : ${{ github.event_name }}-${{ github.ref }}
9
+ cancel-in-progress : true
10
+
11
+ jobs :
12
+ deploy :
13
+ if : ${{ github.event_name == 'workflow_dispatch' }}
14
+ runs-on : ubuntu-latest
15
+ environment :
16
+ name : development
17
+ url : https://test-github-features-development.fly.dev
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - id : build
21
+ uses : ./.github/actions/build
22
+ with :
23
+ push : true
24
+ username : ${{ github.actor}}
25
+ password : ${{ secrets.GITHUB_TOKEN }}
26
+
27
+ - name : Deploy
28
+ uses : ./.github/actions/deploy
29
+ with :
30
+ environment : development
31
+ token : ${{ secrets.FLY_TOKEN }}
32
+ image : ${{ steps.build.outputs.tags }}
33
+ slack_webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
Original file line number Diff line number Diff line change
1
+ name : Deploy (production)
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ concurrency :
9
+ group : ${{ github.event_name }}
10
+ cancel-in-progress : true
11
+
12
+ jobs :
13
+ deploy :
14
+ runs-on : ubuntu-latest
15
+ environment :
16
+ name : production
17
+ url : https://test-github-features.fly.dev
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+ - id : build
21
+ uses : ./.github/actions/build
22
+ with :
23
+ push : true
24
+ username : ${{ github.actor}}
25
+ password : ${{ secrets.GITHUB_TOKEN }}
26
+
27
+ - name : Deploy
28
+ uses : ./.github/actions/deploy
29
+ with :
30
+ environment : production
31
+ token : ${{ secrets.FLY_TOKEN }}
32
+ image : ${{ steps.build.outputs.tags }}
33
+ slack_webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
Original file line number Diff line number Diff line change
1
+ name : Deploy (staging)
2
+
3
+ on :
4
+ merge_group :
5
+
6
+ concurrency :
7
+ group : ${{ github.event_name }}
8
+ cancel-in-progress : true
9
+
10
+ jobs :
11
+ deploy :
12
+ runs-on : ubuntu-latest
13
+ environment :
14
+ name : staging
15
+ url : https://test-github-features-staging.fly.dev
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - id : build
19
+ uses : ./.github/actions/build
20
+ with :
21
+ push : true
22
+ username : ${{ github.actor}}
23
+ password : ${{ secrets.GITHUB_TOKEN }}
24
+
25
+ - name : Deploy
26
+ uses : ./.github/actions/deploy
27
+ with :
28
+ environment : staging
29
+ token : ${{ secrets.FLY_TOKEN }}
30
+ image : ${{ steps.build.outputs.tags }}
31
+ slack_webhook_url : ${{ secrets.SLACK_WEBHOOK_URL }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments