-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
30 lines (26 loc) · 757 Bytes
/
Taskfile.yml
File metadata and controls
30 lines (26 loc) · 757 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
version: '3'
silent: true
vars:
src: examples/showcase/src
dist: examples/showcase/dist
tasks:
build:
cmds:
- go build -o ./bin/gohtmlx .
run:
vars:
src: "{{.src}}"
dist: "{{.dist}}"
cmds:
- task build && ./bin/gohtmlx --src={{.src}} --dist={{.dist}}
dev:
cmds:
- nodemon -e "go,html" -i "examples/showcase/dist" -q --signal SIGTERM --exec "task run"
docker:push:
desc: Build and push example app image to ghcr.io/abdheshnayak/htmlx:example (override with env).
env:
DOCKER_REGISTRY: ghcr.io
DOCKER_IMAGE: abdheshnayak/gohtmlx
DOCKER_TAG: example
cmds:
- docker buildx build --push --tag ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${DOCKER_TAG} --file ./Dockerfile .