-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (68 loc) · 2.12 KB
/
staging.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: deploy to staging
on:
push:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
statuses: write
contents: read
environment: staging
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
cache: true
go-version-file: provider/github-app-token/go.mod
cache-dependency-path: provider/github-app-token/go.sum
- name: build
run: |
make build
working-directory: provider
- uses: fuller-inc/actions-aws-assume-role@ab8b68ccaa6a83d843cd6f9403fc3c0eb2e3af0c # v1.7.1
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::616212855146:role/github-app-token-github-actions-us-east-1
role-session-tagging: true
use-node-id: true
- name: deploy
run: |
make deploy
working-directory: provider
env:
APP_ENV: staging
- name: Set up Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: action/package.json
cache: "npm"
cache-dependency-path: action/package-lock.json
- name: Install dependencies
run: |
npm ci
working-directory: action
- name: Build
run: |
npm run build
working-directory: action
- id: generate
name: Use the action
uses: ./
with:
provider-endpoint: https://8y6823l0x3.execute-api.us-east-1.amazonaws.com
app-id: "263885"
repositories: |
R_kgDOIeornQ
R_kgDOIevBqQ
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: "shogo82148/improved-lamp"
path: improved-lamp
token: ${{ steps.generate.outputs.token }}