30 lines
779 B
YAML
30 lines
779 B
YAML
version: 0.2
|
|
|
|
phases:
|
|
install:
|
|
runtime-versions:
|
|
nodejs: 18
|
|
commands:
|
|
- echo cloning repository...
|
|
- git clone https://git.falsy.cat/falsycat/imbusy/ .
|
|
- find
|
|
|
|
- echo installing dependencies...
|
|
- cd frontend && npm ci && cd ..
|
|
- cd backend && npm ci && cd ..
|
|
build:
|
|
commands:
|
|
- echo building frontend...
|
|
- cd frontend && npm run build && cd ..
|
|
|
|
- echo building backend...
|
|
- cd backend && npm run build && cd ..
|
|
post_build:
|
|
commands:
|
|
- echo deploying frontend...
|
|
- aws s3 sync frontend/dist/ s3://$IMBUSY_FE_BUCKET --delete
|
|
|
|
- echo deploying backend...
|
|
- cd backend/dist && zip -r ../../backend.zip . && cd ../..
|
|
- aws s3 cp backend.zip s3://$IMBUSY_BE_BUCKET
|