Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CircleCI Deployments #104

Draft
wants to merge 1 commit into
base: alpha-release
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 52 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
format:
docker:
- image: cimg/node:lts
environment:
DATA_BASE_URL: DATA_BASE_URL
steps:
- checkout
- node/install-packages:
Expand All @@ -17,8 +15,6 @@ jobs:
lint:
docker:
- image: cimg/node:lts
environment:
DATA_BASE_URL: DATA_BASE_URL
steps:
- checkout
- node/install-packages:
Expand All @@ -37,11 +33,51 @@ jobs:
- image: cimg/node:lts
environment:
DATA_BASE_URL: DATA_BASE_URL

steps:
- checkout
preview_deployment:
docker:
- image: circleci/node:latest
environment:
VERCEL_ORG_ID: $VERCEL_ORG_ID
VERCEL_PROJECT_ID: $VERCEL_PROJECT_ID
steps:
- checkout
- run:
name: Install Vercel CLI
command: npm install --global vercel@latest
- run:
name: Pull Vercel Environment Information
command: vercel pull --yes --environment=preview --token=$VERCEL_TOKEN
- run:
name: Build Project Artifacts
command: vercel build --token=$VERCEL_TOKEN
- run:
name: Deploy Project Artifacts to Vercel
command: vercel deploy --prebuilt --token=$VERCEL_TOKEN
production_deployment:
docker:
- image: circleci/node:latest
environment:
VERCEL_ORG_ID: $VERCEL_ORG_ID
VERCEL_PROJECT_ID: $VERCEL_PROJECT_ID
steps:
- checkout
- run:
name: Install Vercel CLI
command: npm install --global vercel@latest
- run:
name: Pull Vercel Environment Information
command: vercel pull --yes --environment=production --token=$VERCEL_TOKEN
- run:
name: Build Project Artifacts
command: vercel build --prod --token=$VERCEL_TOKEN
- run:
name: Deploy Project Artifacts to Vercel
command: vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN

workflows:
version: 2
format:
jobs:
- build
Expand All @@ -53,4 +89,14 @@ workflows:
- build
lint:
jobs:
- build
- build
preview_and_production:
jobs:
- preview_deployment:
filters:
branches:
ignore: /main/
- production_deployment:
filters:
branches:
only: /main/
2 changes: 2 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# connect with 1Password
# Fetch secrets
Loading