Skip to content

deploy.locai-production-cluster #1

deploy.locai-production-cluster

deploy.locai-production-cluster #1

name: deploy.locai-production-cluster
on:
push:
branches: [locai-main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest-large
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'RELEASE') }}
steps:
- name: Display System Information
run: |
echo "Printing system info:"
echo $LC_ALL
echo $LANG
- name: Clone Repository to Head of Main Branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Display Git Information
run: |
echo "Printing git info:"
git tag
git status
git log -20 --stat --tags
- name: Remove unneeded files
run: |
rm .env.vault
- name: Setup Node Environment
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Display Node and NPM Information
run: |
node --version
npm --version
- name: Install Dependencies from package.json
run: npm ci
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Pulumi Up
uses: pulumi/actions@v5
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LOCAI_AWS_ACCESS_KEY_ID }}
AWS_DEFAULT_REGION: me-central-1
AWS_SECRET_ACCESS_KEY: ${{ secrets.LOCAI_AWS_SECRET_ACCESS_KEY }}
HF_HUB_TOKEN: ${{ secrets.HUGGINGFACE_HUB_TOKEN }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
with:
command: up
stack-name: vapi/locai-me-central-1-vapi-production
work-dir: infra/cluster