-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.16 KB
/
hello-world-docker-ci.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
54
name: CI Build for Docker Action
on:
push:
branches: [ main ]
paths: [ hello-world-docker-action/** ]
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
type: environment
required: true
jobs:
Test:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
needs: Build
environment: Test
steps:
- run: echo "🧪 Testing..."
Load-Test:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
needs: Build
environment: Load-Test
steps:
- run: |
echo "🧪 Testing..."
sleep 15
Production:
runs-on: ubuntu-latest
needs: [Test, Load-Test]
environment:
name: Production
url: https://writeabout.net
if: github.event.inputs.environment == 'Production'
steps:
- run: |
echo "🚀 Step 1..."
sleep 10
- run: |
echo "🚀 Step 2..."
sleep 10
- run: |
echo "🚀 Step 3..."
sleep 10
- run: |
echo "🚀 Step 4..."
sleep 10
- run: |
echo "🚀 Step 5..."
sleep 10