implement docker remote and local cron job
This commit is contained in:
29
Taskfile.yaml
Normal file
29
Taskfile.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
version: "3"
|
||||
|
||||
vars:
|
||||
compose_file: "local-compose.yaml"
|
||||
cache_bust:
|
||||
sh: "date +%s"
|
||||
|
||||
tasks:
|
||||
build:
|
||||
cmds:
|
||||
- docker compose -f {{.compose_file}} build --build-arg CACHE_BUST={{.cache_bust}}
|
||||
up:
|
||||
cmds:
|
||||
- CACHE_BUST={{.cache_bust}} docker compose -f {{.compose_file}} up --build
|
||||
start:
|
||||
cmds:
|
||||
- docker compose -f {{.compose_file}} up -d
|
||||
down:
|
||||
cmds:
|
||||
- docker compose -f {{.compose_file}} down
|
||||
clean:
|
||||
cmds:
|
||||
- docker system prune -f
|
||||
push:
|
||||
cmds:
|
||||
- docker buildx build --build-arg CACHE_BUST={{.cache_bust}} --platform linux/amd64,linux/arm64 -t registry.infra.nkode.tech/cron-nkode:latest --push .
|
||||
exec:
|
||||
cmds:
|
||||
- docker exec -it cron-nkode bash
|
||||
Reference in New Issue
Block a user