-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (42 loc) · 1.02 KB
/
deploy.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
name: Deployment
on:
push:
branches:
- main
- dev*
workflow_dispatch:
env:
deployment-value: "test deployment value"
jobs:
deploy-dev:
runs-on: ubuntu-latest
environment: dev
steps:
- run: |
printenv
echo "Secrets:"
echo '${{ secrets.ENVIRONMENTSECRET }}'
echo "Variable:"
echo 'env var ${{ env.deployment-value }}'
name: deploy
# ...deployment-specific steps
deploy-test:
runs-on: ubuntu-latest
environment: test
needs: deploy-dev
steps:
- run: |
echo ${{ secrets.ENVIRONMENTSECRET }}
echo ${{ vars.DEPLOYMENT }}
name: deploy
# ...deployment-specific steps
deploy-prod:
runs-on: ubuntu-latest
environment: prod
needs: deploy-test
steps:
- run: |
echo ${{ secrets.ENVIRONMENTSECRET }}
echo ${{ vars.DEPLOYMENT }}
name: deploy
# ...deployment-specific steps