-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskfile.yml
30 lines (26 loc) · 905 Bytes
/
taskfile.yml
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
version: '3'
tasks:
docker-image:
desc: Builds the docker image and tags it
cmds:
- gradle clean build
- docker buildx build --platform linux/amd64,linux/arm64 -t devinfritz/vzbot-discordbot:latest --push .
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
dev:
desc: "Build the project with Gradle and boot the Docker Compose dev environment"
cmds:
- echo "Building the project using Gradle..."
- ./gradlew build
- 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