-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.03 KB
/
deploy-staging.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
32
33
34
35
name: SST staging deployment workflow
on:
push:
branches:
- develop
- 82_update_deployment_with_next_auth_vars
# Concurrency group name ensures concurrent workflow runs wait for any in-progress job to finish
concurrency:
group: merge-${{ github.ref }}
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
DeployApp:
runs-on: ubuntu-latest
environment: staging
env:
ENV: ${{ vars.ENV }}
NEXTAUTH_URL: ${{ vars.NEXTAUTH_URL }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::597778497612:role/GitHub-Actions
role-duration-seconds: 900
aws-region: eu-central-1
- name: Deploy app
run: |
npm i && npx nx deploy:staging envited.ascs.digital