-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
38 lines (30 loc) · 840 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
38 lines (30 loc) · 840 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
38
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
dotenv: [".env", ".env.local"]
tasks:
default:
cmds:
- task --list-all
server:
desc: Start the server
cmds:
- air
client:
desc: Start the client
dir: ui
cmds:
- bun run dev
docker:build:
desc: Build multi-arch Docker image
vars:
COMMIT:
sh: git rev-parse --short HEAD
cmds:
- docker buildx build --platform linux/amd64,linux/arm64 -t bazo/requestbin:latest -t bazo/requestbin:{{.COMMIT}} .
docker:push:
desc: Build and push multi-arch Docker image to Docker Hub
vars:
COMMIT:
sh: git rev-parse --short HEAD
cmds:
- docker buildx build --platform linux/amd64,linux/arm64 -t bazo/requestbin:latest -t bazo/requestbin:{{.COMMIT}} --push .