-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtaskfile.yml
More file actions
42 lines (35 loc) · 1.13 KB
/
taskfile.yml
File metadata and controls
42 lines (35 loc) · 1.13 KB
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
39
40
41
42
version: '3'
tasks:
build-backend:
desc: Build the backend fat JAR
dir: backend
cmds:
- ./gradlew clean build
docker-image:
desc: Builds the backend docker image and pushes it
cmds:
- task: build-backend
- docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/vzbot3d/vzbot-discordbot:latest --push backend/
start-prod:
desc: "Start the Docker Compose production environment"
cmds:
- docker compose -f docker-compose.yml up -d
start-dev:
desc: "Start the Docker Compose development environment"
cmds:
- docker compose -f docker-compose.dev.yml up -d
stop-dev:
desc: "Stop the Docker Compose development environment"
cmds:
- docker compose -f docker-compose.dev.yml down
dev:
desc: "Build the backend and start the dev database"
cmds:
- echo "Building the backend using Gradle..."
- task: build-backend
- echo "Starting Docker Compose with development configuration..."
- docker compose -f docker-compose.dev.yml up -d
stop:
desc: "Stop all Docker Compose services"
cmds:
- docker compose down