-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (51 loc) · 1.54 KB
/
deploy-tools.yaml
File metadata and controls
60 lines (51 loc) · 1.54 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
53
54
55
56
57
58
59
60
name: Deploy TN Tools
# this workflow should be deploying every TN tool that needs to be deployed with `main` commits
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy-benchmark:
if: ${{ false }} # Disabled for now, enable when ready
name: Deploy Benchmark Stack
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
check-latest: true
- name: Install dependencies
env:
GH_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go work init
go work use .
go work use deployments/infra
go mod download
go work vendor
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install AWS CDK
run: npm install -g aws-cdk
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: us-east-2
- name: Deploy Benchmark Stack
run: |
cd deployments/infra
cdk deploy --require-approval never Benchmark-staging-Stack \
--exclusively \
--context deploymentStage=STAGING