Skip to content

deps: Rollback @ediri/vultr to 2.20.1 #78

deps: Rollback @ediri/vultr to 2.20.1

deps: Rollback @ediri/vultr to 2.20.1 #78

Workflow file for this run

name: ci_cd
on: push
env:
TURBO_CACHE_DIR: .turbo
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
registry-url: https://registry.npmjs.org/
- name: Install NPM dependencies
run: npm ci
- name: Lint
run: npm run lint --if-present
- name: Build
run: npm run build --if-present
- name: Test
run: npm run test --if-present
- id: modified_paths_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths_filter: |
availability:
paths:
- 'apps/availability/**'
backend:
paths:
- 'apps/backend/**'
bubble-proxy:
paths:
- 'apps/bubble-proxy/**'
frontend-example:
paths:
- 'apps/frontend-example/**'
infra:
paths:
- 'apps/infra/**'
login:
paths:
- 'apps/login/**'
meet:
paths:
- 'apps/meet/**'
miniextensions-proxy:
paths:
- 'apps/miniextensions-proxy/**'
paths: '["package-lock.json"]'
paths_ignore: '["**/README.md"]'
outputs:
should_skip: ${{ steps.modified_paths_check.outputs.should_skip }}
paths_result: ${{ steps.modified_paths_check.outputs.paths_result }}
cd_infra:
needs: ci
if: ${{ github.ref == 'refs/heads/master' && (needs.ci.outputs.should_skip != 'true' || !fromJSON(needs.ci.outputs.paths_result).infra.should_skip) }}
runs-on: ubuntu-latest
concurrency:
group: cd_infra
timeout-minutes: 20
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install NPM dependencies
run: npm ci
- name: Configure for deployment
run: |
echo "$INFRA_PULUMI_PASSPHRASE" > apps/infra/passphrase.prod.txt
mkdir -p ~/.aws
echo "$INFRA_AWS_CREDENTIALS" > ~/.aws/credentials
env:
INFRA_PULUMI_PASSPHRASE: ${{ secrets.INFRA_PULUMI_PASSPHRASE }}
# See the infra README - these should actually have details for Vultr Object Storage
INFRA_AWS_CREDENTIALS: ${{ secrets.INFRA_AWS_CREDENTIALS }}
- name: Deploy
run: npm run deploy:prod --workspace apps/infra
cd_frontend-example:
needs: ci
if: ${{ github.ref == 'refs/heads/master' && (needs.ci.outputs.should_skip != 'true' || !fromJSON(needs.ci.outputs.paths_result).frontend-example.should_skip) }}
runs-on: ubuntu-latest
concurrency:
group: cd_frontend-example
timeout-minutes: 20
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install NPM dependencies
run: npm ci
- name: Configure for deployment
run: |
docker login https://sjc.vultrcr.com/bluedot -u dbaa58f3-01f1-4fcc-9c14-93cc28f524e0 -p $VULTR_CONTAINER_REGISTRY_PASSWORD
mkdir -p ~/.kube
echo "$K8S_KUBECONFIG" > ~/.kube/config
env:
K8S_KUBECONFIG: ${{ secrets.K8S_KUBECONFIG }}
VULTR_CONTAINER_REGISTRY_PASSWORD: ${{ secrets.VULTR_CONTAINER_REGISTRY_PASSWORD }}
- name: Deploy
run: npm run deploy:prod --workspace apps/frontend-example
cd_availability:
needs: ci
if: ${{ github.ref == 'refs/heads/master' && (needs.ci.outputs.should_skip != 'true' || !fromJSON(needs.ci.outputs.paths_result).availability.should_skip) }}
runs-on: ubuntu-latest
concurrency:
group: cd_availability
timeout-minutes: 20
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install NPM dependencies
run: npm ci
- name: Configure for deployment
run: |
docker login https://sjc.vultrcr.com/bluedot -u dbaa58f3-01f1-4fcc-9c14-93cc28f524e0 -p $VULTR_CONTAINER_REGISTRY_PASSWORD
mkdir -p ~/.kube
echo "$K8S_KUBECONFIG" > ~/.kube/config
env:
K8S_KUBECONFIG: ${{ secrets.K8S_KUBECONFIG }}
VULTR_CONTAINER_REGISTRY_PASSWORD: ${{ secrets.VULTR_CONTAINER_REGISTRY_PASSWORD }}
- name: Deploy
run: npm run deploy:prod --workspace apps/availability
cd_login:
needs: ci
if: ${{ github.ref == 'refs/heads/master' && (needs.ci.outputs.should_skip != 'true' || !fromJSON(needs.ci.outputs.paths_result).login.should_skip) }}
runs-on: ubuntu-latest
concurrency:
group: cd_login
timeout-minutes: 20
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install NPM dependencies
run: npm ci
- name: Configure for deployment
run: |
docker login https://sjc.vultrcr.com/bluedot -u dbaa58f3-01f1-4fcc-9c14-93cc28f524e0 -p $VULTR_CONTAINER_REGISTRY_PASSWORD
mkdir -p ~/.kube
echo "$K8S_KUBECONFIG" > ~/.kube/config
env:
K8S_KUBECONFIG: ${{ secrets.K8S_KUBECONFIG }}
VULTR_CONTAINER_REGISTRY_PASSWORD: ${{ secrets.VULTR_CONTAINER_REGISTRY_PASSWORD }}
- name: Deploy
run: npm run deploy:prod --workspace apps/login
cd_meet:
needs: ci
if: ${{ github.ref == 'refs/heads/master' && (needs.ci.outputs.should_skip != 'true' || !fromJSON(needs.ci.outputs.paths_result).meet.should_skip) }}
runs-on: ubuntu-latest
concurrency:
group: cd_meet
timeout-minutes: 20
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install NPM dependencies
run: npm ci
- name: Configure for deployment
run: |
docker login https://sjc.vultrcr.com/bluedot -u dbaa58f3-01f1-4fcc-9c14-93cc28f524e0 -p $VULTR_CONTAINER_REGISTRY_PASSWORD
mkdir -p ~/.kube
echo "$K8S_KUBECONFIG" > ~/.kube/config
env:
K8S_KUBECONFIG: ${{ secrets.K8S_KUBECONFIG }}
VULTR_CONTAINER_REGISTRY_PASSWORD: ${{ secrets.VULTR_CONTAINER_REGISTRY_PASSWORD }}
- name: Deploy
run: npm run deploy:prod --workspace apps/meet
cd_miniextensions-proxy:
needs: ci
if: ${{ github.ref == 'refs/heads/master' && (needs.ci.outputs.should_skip != 'true' || !fromJSON(needs.ci.outputs.paths_result).miniextensions-proxy.should_skip) }}
runs-on: ubuntu-latest
concurrency:
group: cd_miniextensions-proxy
timeout-minutes: 20
steps:
- name: Checkout ${{ github.sha }}
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install NPM dependencies
run: npm ci
- name: Configure for deployment
run: |
docker login https://sjc.vultrcr.com/bluedot -u dbaa58f3-01f1-4fcc-9c14-93cc28f524e0 -p $VULTR_CONTAINER_REGISTRY_PASSWORD
mkdir -p ~/.kube
echo "$K8S_KUBECONFIG" > ~/.kube/config
env:
K8S_KUBECONFIG: ${{ secrets.K8S_KUBECONFIG }}
VULTR_CONTAINER_REGISTRY_PASSWORD: ${{ secrets.VULTR_CONTAINER_REGISTRY_PASSWORD }}
- name: Deploy
run: npm run deploy:prod --workspace apps/miniextensions-proxy