Skip to content

fix: create room only on match #48

fix: create room only on match

fix: create room only on match #48

name: Matching Service Pulumi Preview
on:
pull_request:
branches: ["staging", "master"]
paths: ["backend/matching-service/**"]
env:
WORKING_DIRECTORY_INFRA: ./backend/matching-service/infra
STACK_NAME: ${{ github.ref == 'refs/heads/master' && 'cs3219/matching-service-infra/prod' || 'cs3219/matching-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 }}