]> git.armaanb.net Git - tall.bot.git/commitdiff
update build.yml, add build badge
authorArmaan Bhojwani <code@armaanb.net>
Wed, 16 Dec 2020 01:00:58 +0000 (20:00 -0500)
committerArmaan Bhojwani <code@armaanb.net>
Wed, 16 Dec 2020 01:00:58 +0000 (20:00 -0500)
.build.yml
README.md

index bc16a4bc07e87ee91121f034477db3960aa61ac6..4f3e42c6314940b5d034b7a8272aaaf334af1414 100644 (file)
@@ -6,10 +6,11 @@ sources:
 secrets:
   - cfca6590-dec3-46f3-abf0-3bce5c907e4a
 tasks:
+  - prep: |
+      sudo systemctl start docker
   - build: |
       cd tall.bot
-      docker build -t armaanb/tall.bot:latest
-      docker login
-      docker push
-artifacts:
-  - gen-shell/src/gen-shell
+      sudo docker build -t armaanb/tall.bot:latest .
+  - push: |
+      cat ~/docker.txt | docker login --username armaancicd --password-stdin
+      docker push armaanb/tall.bot
index d12e66ff43b3cb22d4eb23cb7337896168b5e6fa..357a1deaa5b45c57b5d5ef1d0cdf5be06776ef0a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,5 +1,10 @@
 # tall.bot
+[![builds.sr.ht status](https://builds.sr.ht/~armaan/tall.bot/commits/.build.yml.svg)](https://builds.sr.ht/~armaan/tall.bot/commits/.build.yml?)
+
 A simple discord Wikipedia bot
 
+## Installation
+Either run the docker container `armaanb/tall.bot` with the TOKEN environment variable set, or just run the script with the token as the only argument
+
 ## License
 Copyright Armaan Bhojwani 2020, MIT license