feat: delete room when no users are left #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Collaboration Service Pulumi Preview | |
on: | |
pull_request: | |
branches: ["staging", "master"] | |
paths: ["backend/collaboration-service/**"] | |
env: | |
WORKING_DIRECTORY_INFRA: ./backend/collaboration-service/infra | |
STACK_NAME: ${{ github.ref == 'refs/heads/master' && 'cs3219/collaboration-service-infra/prod' || 'cs3219/collaboration-service-infra/staging'}} | |
jobs: | |
preview: | |
name: Preview | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ env.WORKING_DIRECTORY_INFRA }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: 16.15.0 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- run: npm install | |
- uses: pulumi/actions@v3 | |
with: | |
work-dir: ${{ env.WORKING_DIRECTORY_INFRA }} | |
command: preview | |
stack-name: ${{ env.STACK_NAME}} | |
env: | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} |