20 lines
574 B
Makefile
20 lines
574 B
Makefile
include docker.env
|
|
export $(shell sed 's/=.*//' docker.env)
|
|
|
|
SHELL = /bin/bash
|
|
GIT_COMMIT != git log --pretty=format:'%h' -n 1
|
|
|
|
|
|
build:
|
|
docker build \
|
|
--build-arg DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN} \
|
|
--build-arg YOUTUBE_COOKIES=${YOUTUBE_COOKIES} \
|
|
--build-arg GIT_COMMIT=${GIT_COMMIT} \
|
|
--build-arg DISCORD_LOG_CHANNEL_ID=${DISCORD_LOG_CHANNEL_ID} \
|
|
--build-arg DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP=${DISCORD_LOG_CHANNEL_CLEAR_ON_STARTUP} \
|
|
-t musicube:${GIT_COMMIT} -t musicube:latest \
|
|
.
|
|
|
|
run:
|
|
docker run --rm --detach --name musicube musicube:latest
|