-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 878 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 878 Bytes
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
.PHONY: build deploy stop restart lint lint-fix publish help
# AWS defaults (use AWS_PROFILE=os-dev)
AWS_ACCOUNT_ID ?= 686640301001
AWS_REGION ?= us-west-2
PROJECT_NAME ?= bones
# Default target
help:
@echo "Available targets:"
@echo " build - Build the Docker image"
@echo " deploy - Deploy/run the container"
@echo " stop - Stop and remove the container"
@echo " restart - Stop and redeploy the container"
@echo " lint - Run ktlint to check code style"
@echo " lint-fix - Run ktlint and auto-fix issues"
@echo " publish - Publish image to ECR (default: bones)"
build:
./scripts/build-image.sh
deploy:
./scripts/deploy.sh
stop:
./scripts/stop.sh
restart: stop deploy
lint:
./gradlew ktlintCheck
lint-fix:
./gradlew ktlintFormat
publish:
AWS_ACCOUNT_ID=$(AWS_ACCOUNT_ID) AWS_REGION=$(AWS_REGION) ./scripts/publish.sh $(PROJECT_NAME)