-
Notifications
You must be signed in to change notification settings - Fork 78
53 lines (46 loc) · 973 Bytes
/
StagedDeployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Staged Deployment
on:
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Build app
run: echo "Building..."
Test:
runs-on: ubuntu-latest
environment: Test
needs: Build
steps:
- name: Test app
run: echo "Testing..."
Load-Test:
runs-on: ubuntu-latest
environment: Load-Test
needs: Build
steps:
- name: Test app
run: |
echo "Testing..."
sleep 15
Staging:
runs-on: ubuntu-latest
needs: [Test, Load-Test]
environment:
name: Staging
url: https://pre.writeabout.net
steps:
- name: Deploy app
run: echo "Deploying..."
Production:
runs-on: ubuntu-latest
environment:
name: prod
url: https://writeabout.net
needs: Staging
steps:
- run: echo "Step 1..."
- run: echo "Step 2..."
- run: sleep 30
- run: echo "Step 4..."
- run: echo "Step 5..."