Skip to content

Cleaner fallback methods #13

Cleaner fallback methods

Cleaner fallback methods #13

Workflow file for this run

name: πŸš€ Deploy
on:
workflow_dispatch:
push:
branches:
- main
- staging
- ci/setup
concurrency:
group: ${{ github.ref }}-deploy
env:
CI: true
permissions:
id-token: write
contents: write
defaults:
run:
shell: bash
jobs:
deploy:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: oven-sh/setup-bun@v1
- name: "πŸ”¨ Install dependencies"
run: bun install --frozen-lockfile
- name: "πŸ‘₯ Configure AWS Credentials"
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::262732185023:role/github-action-deploy-role
aws-region: eu-west-1
retry-max-attempts: 5
- name: "πŸ‘₯ Login to Amazon ECR"
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: "πŸ”¨ Prebuild docker dependencies"
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
push: true
tags: 262732185023.dkr.ecr.eu-west-1.amazonaws.com/indexer-cache:latest
- name: "πŸš€ SST Deploy"
run: |
echo "Deploying with stage: prod"
bun sst deploy --stage prod