-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yaml
38 lines (34 loc) · 1.34 KB
/
buildspec.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: 0.2
env:
parameter-store:
REDIS_HOST: /redis/host
REDIS_PORT: /redis/port
REDIS_PASSWORD: /redis/password
PORT: /port
NODE_ENV: /node/env
phases:
install:
runtime-versions:
nodejs: 18
commands:
- echo "📦 installing packages..."
- echo "✅ Packages installed successfully."
pre_build:
commands:
- echo "⚙️ Testing..."
- echo "✅ Tests passed successfully."
- echo $PASSWORD
build:
commands:
- echo "🚧 Starting compiling packages..."
- echo "✅ Build passed successfully."
post_build:
commands:
- echo "🚚 Performing post-build packing and operations..."
- aws deploy push --application-name deploy.api.consumet.org --s3-location s3://deploy-deployment-revisions/development/source.zip --ignore-hidden-files
- aws deploy create-deployment --application-name deploy.api.consumet.org --s3-location bucket=deploy-deployment-revisions,key=development/source.zip,bundleType=zip,eTag=80e501480a8545019660e87ca42a6f00,version=67ZE9Q8CZeo9XszaZ4F.eKmrlW7mnDrm --deployment-group-name DGN --deployment-config-name CodeDeployDefault.AllAtOnce --description "This deployment aims to deploy our code to the eligible EC2 instance(s)."
- echo "✅ Post build successful"
artifacts:
files:
- '**/*'
name: deploy-build-artifacts