Add Makefile
This commit is contained in:
parent
9f34e0d774
commit
d04783e2b3
|
@ -1,5 +1,6 @@
|
||||||
venv
|
venv
|
||||||
__pycache__
|
__pycache__
|
||||||
.env
|
.env
|
||||||
|
docker.env
|
||||||
.coverage
|
.coverage
|
||||||
*cookies.txt
|
*cookies.txt
|
|
@ -0,0 +1,10 @@
|
||||||
|
GIT_COMMIT != git log --pretty=format:'%h' -n 1
|
||||||
|
|
||||||
|
build:
|
||||||
|
source <(cat docker.env | sed -e 's/^/export /g')
|
||||||
|
docker build \
|
||||||
|
--build-arg DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN} \
|
||||||
|
--build-arg YOUTUBE_COOKIES=${YOUTUBE_COOKIES} \
|
||||||
|
--build-arg GIT_COMMIT=${GIT_COMMIT} \
|
||||||
|
-t musicube:${GIT_COMMIT} -t musicube:latest \
|
||||||
|
.
|
Loading…
Reference in New Issue