forked from openmultiplayer/homepage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
24 lines (22 loc) · 694 Bytes
/
Taskfile.yml
File metadata and controls
24 lines (22 loc) · 694 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
version: "2"
vars:
OWNER: southclaws
SERVICE: openmp
GIT_COMMIT: { sh: git describe --always --dirty --tags }
tasks:
up:
cmds:
- docker-compose up -d
- docker-compose logs -f
build:
cmds:
- docker build -t southclaws/{{.SERVICE}}:{{ .GIT_COMMIT }} .
- docker tag southclaws/{{.SERVICE}}:{{ .GIT_COMMIT }} southclaws/{{.SERVICE}}:latest
run:
cmds:
- docker run --env-file=.env -p8080:3000 southclaws/{{.SERVICE}}:latest
push:
cmds:
- docker push {{.OWNER}}/{{.SERVICE}}:{{.GIT_COMMIT}}
- docker tag {{.OWNER}}/{{.SERVICE}}:{{.GIT_COMMIT}} {{.OWNER}}/{{.SERVICE}}:latest
- docker push {{.OWNER}}/{{.SERVICE}}:latest