diff --git a/.gitignore b/.gitignore index 6881818..269198e 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ __* # Whitelisted Files !start_bot.bat +!update.bat \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..28e5b8e --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,6 @@ + +services: + discord-bot: + image: 'intertia-discord-bot' + env_file: + - ./.env \ No newline at end of file diff --git a/update.bat b/update.bat new file mode 100644 index 0000000..89b8987 --- /dev/null +++ b/update.bat @@ -0,0 +1,8 @@ +if [[ `git status --porcelain` ]]; then + call git pull + call docker build --tag inertia-dicord-bot . + call docker-compose doown + call docker-compose up -d +else + # No changes +fi \ No newline at end of file