-
-
Notifications
You must be signed in to change notification settings - Fork 35
31 lines (29 loc) · 946 Bytes
/
betasite.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
name: Build Beta Site
on:
push:
branches:
- develop
env:
AWS_DEFAULT_REGION: us-east-2
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/beta-access
role-session-name: github-${{ github.sha }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Build and Deploy the Map
run: |
echo Build started on `date`
echo Building the webapp...
docker-compose run prod_build
echo Build completed on `date`
echo Pushing the webapp to S3...
aws s3 sync docker/build s3://beta.phlask.me --acl public-read --delete