Skip to content

Update Dockerfile to include build date label for cache busting durin… #5

Update Dockerfile to include build date label for cache busting durin…

Update Dockerfile to include build date label for cache busting durin… #5

Workflow file for this run

name: Deploy to AWS
on:
push:
branches: [main]
workflow_dispatch: # Allow manual trigger
env:
AWS_REGION: us-east-1
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.8
- name: Setup Node.js (for Pulumi)
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install pnpm
run: npm install -g pnpm
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Install dependencies
run: |
bun install
cd apps/infra && pnpm install
- name: Deploy with Pulumi
run: |
cd apps/infra
pulumi stack select compai/placeholder-dev --create
pulumi up --yes
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}