-
Notifications
You must be signed in to change notification settings - Fork 70
52 lines (48 loc) · 1.2 KB
/
deploy.yml
File metadata and controls
52 lines (48 loc) · 1.2 KB
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
name: Deployment Pipeline
on:
push:
branches:
- main
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
required: true
default: 'development'
type: choice
options:
- development
- staging
- production
jobs:
deploy-dev:
name: Deploy to Development
runs-on: ubuntu-latest
environment:
name: development
steps:
- uses: actions/checkout@v3
- name: Deploy
run: echo "Deploying to development environment..."
deploy-staging:
name: Deploy to Staging
needs: deploy-dev
runs-on: ubuntu-latest
environment:
name: staging
url: https://staging.subtrackr.app
steps:
- uses: actions/checkout@v3
- name: Deploy
run: echo "Deploying to staging environment with manual approval gate..."
deploy-prod:
name: Deploy to Production
needs: deploy-staging
runs-on: ubuntu-latest
environment:
name: production
url: https://subtrackr.app
steps:
- uses: actions/checkout@v3
- name: Deploy
run: echo "Deploying to production environment with strict manual approval gate..."