2021-09-25 21:28:04 +00:00
|
|
|
include docker.env
|
|
|
|
export $(shell sed 's/=.*//' docker.env)
|
|
|
|
|
|
|
|
SHELL = /bin/bash
|
2021-09-25 20:46:45 +00:00
|
|
|
GIT_COMMIT != git log --pretty=format:'%h' -n 1
|
|
|
|
|
2021-09-25 21:28:04 +00:00
|
|
|
|
2021-09-25 20:46:45 +00:00
|
|
|
build:
|
|
|
|
docker build \
|
2021-09-25 21:28:04 +00:00
|
|
|
--build-arg DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN} \
|
2021-09-25 20:46:45 +00:00
|
|
|
--build-arg YOUTUBE_COOKIES=${YOUTUBE_COOKIES} \
|
|
|
|
--build-arg GIT_COMMIT=${GIT_COMMIT} \
|
2021-11-03 23:59:52 +00:00
|
|
|
--build-arg DISCORD_LOG_CHANNEL_ID=${DISCORD_LOG_CHANNEL_ID} \
|
|
|
|
--build-arg DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP=${DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP} \
|
2021-09-25 20:46:45 +00:00
|
|
|
-t musicube:${GIT_COMMIT} -t musicube:latest \
|
|
|
|
.
|
2023-01-27 21:51:06 +00:00
|
|
|
|
|
|
|
run:
|
|
|
|
docker run --rm --detach --name musicube musicube:latest
|