auto update test #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to the Abyss | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- name: Update repo | |
uses: actions/checkout@v3 | |
- name: Stop all containers | |
run: docker stop $(docker ps -a -q) | |
- name: Clean all docker data | |
run: docker system prune -af | |
- name: Build docker container | |
run: docker build -t the-res3ar4er . | |
- name: Start the bot | |
run: docker run --name the-r34er --restart always -d -e THE_R34ER_TOKEN=${{ secrets.THE_R34ER_TOKEN }} the-res3ar4er |