File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : deploy
2
+ on :
3
+ workflow_run :
4
+ workflows : ["validate"]
5
+ branches : ["main"]
6
+ types :
7
+ - completed
8
+
9
+ jobs :
10
+ deploy :
11
+ runs-on : ubuntu-latest
12
+ environment : deploy-${{matrix.environment}}
13
+ strategy :
14
+ matrix :
15
+ environment : ["staging"] # TODO Add 'firefoxci' when we're ready to switch over.
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Set up Python
19
+ uses : actions/setup-python@v5
20
+ with :
21
+ python-version : ' 3.11'
22
+ cache : pip
23
+ - name : Install dependencies
24
+ run : pip install -r requirements/base.txt
25
+ - name : Deploy environment
26
+ run : tc-admin apply --environment ${{matrix.environment}}
Original file line number Diff line number Diff line change
1
+ name : validate
2
+ on : [push]
3
+
4
+ jobs :
5
+ check :
6
+ runs-on : ubuntu-latest
7
+ environment : validate-${{matrix.environment}}
8
+ strategy :
9
+ matrix :
10
+ environment : ["staging", "firefoxci"]
11
+ env :
12
+ TASKCLUSTER_ROOT_URL : ${{vars.TASKCLUSTER_ROOT_URL}}
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v5
17
+ with :
18
+ python-version : ' 3.11'
19
+ cache : pip
20
+ - name : Install dependencies
21
+ run : pip install -r requirements/test.txt
22
+ - name : Run checks
23
+ run : tc-admin check --environment ${{matrix.environment}}
You can’t perform that action at this time.
0 commit comments