-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (52 loc) · 1.66 KB
/
ci.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
---
name: ci
run-name: ci ${{ github.event_name }} ${{ github.ref_name }}
on:
pull_request:
push:
branches: ['master']
workflow_dispatch:
inputs:
env:
type: environment
ref:
description: 'Branch, Tag, or SHA'
required: true
concurrency:
group: ci-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
REFERENCE: ${{ github.event.pull_request.head.sha || github.event.push.head_commit.id }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
strategy:
matrix:
image: [build, backend]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.REFERENCE }}
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions
role-session-name: gha
aws-region: us-west-2
- uses: docker/setup-buildx-action@v3
- id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: 'true'
- run: make build-${{ matrix.image }}
env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
# REACT_APP_GRAPHQL_URL: ${{ vars.REACT_APP_GRAPHQL_URL }}
# PUBLIC_URL: ${{ vars.PUBLIC_URL }}
# REACT_APP_JWT_ISSUER: ${{ secrets.REACT_APP_JWT_ISSUER }}
# REACT_APP_RECAPTCHAS_SITE_KEY: ${{ secrets.REACT_APP_RECAPTCHAS_SITE_KEY }}
# REACT_APP_MICROSOFT_ID: ${{ secrets.REACT_APP_MICROSOFT_ID }}
# REACT_APP_GOOGLE_ID: ${{ secrets.REACT_APP_GOOGLE_ID }}
# MICROSOFT_CLIENT_ID: ${{ secrets.MICROSOFT_CLIENT_ID }}