Skip to content

Commit

Permalink
feat: add auto deploy staging with github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen Branje <[email protected]>
  • Loading branch information
jeroenbranje committed Dec 21, 2023
1 parent 19534b5 commit 33e0925
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: SST staging deployment workflow
on:
push:
branches:
- develop

# 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:
PLATFORM: ${{ vars.PLATFORM }}
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

0 comments on commit 33e0925

Please sign in to comment.