Revert "test: testing to see if the runner is correctly adding the t… #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: Beta Docker Build Runner | |
on: | |
push: | |
branches: [ beta ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
BOT_TOKEN: ${{ secrets.BOT_TOKEN_DEV }} | |
steps: | |
- if: ${{ env.BOT_TOKEN == '' }} | |
run: | | |
echo "Token missing from env!" | |
- if: ${{ env.BOT_TOKEN != '' }} | |
run: | | |
echo "Token found in env!" | |
- uses: appleboy/ssh-action@v1.0.3 | |
with: | |
username: pi | |
host: 99.98.11.100 | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
script: | |
docker compose -f /home/pi/Bot_Data/charidiots/docker-compose-dev.yml up -d --build && sudo docker image prune -f |