-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.docker.yml
More file actions
33 lines (28 loc) · 1.21 KB
/
taskfile.docker.yml
File metadata and controls
33 lines (28 loc) · 1.21 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
version: "3"
tasks:
# Docker tasks
docker-image:
desc: Build docker image locally
deps: [build]
cmds:
- orb start
- docker build --no-cache --build-arg VERSION={{.VERSION}} --load -t damongolding/immich-kiosk:{{.VERSION}} -t damongolding/immich-kiosk:latest .
- orb stop
docker-buildx:
desc: Create and install docker buildx builder
cmds:
- docker buildx create --name multiplatform --driver docker-container --use
dev-push:
desc: Build and push development multi-arch docker image
deps: [build]
cmds:
- cmd: orb start
if: 'command -v orb >/dev/null 2>&1'
- docker build --build-arg VERSION={{.VERSION}}-DEVELOPMENT --platform linux/amd64,linux/arm64 --push -t ghcr.io/damongolding/immich-kiosk-development:{{.VERSION}} -t ghcr.io/damongolding/immich-kiosk-development:latest .
- cmd: orb stop
if: 'command -v orb >/dev/null 2>&1'
push:
desc: Build and push development multi-arch docker image
deps: [build]
cmds:
- docker build --build-arg VERSION={{.VERSION}}-DEVELOPMENT --platform linux/amd64,linux/arm64 --push -t ghcr.io/damongolding/immich-kiosk:{{.VERSION}} -t ghcr.io/damongolding/immich-kiosk:latest .