Beta Docker Build Runner #12
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: | |
- uses: appleboy/ssh-action@v1.0.3 | |
with: | |
username: pi | |
host: 99.98.11.100 | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
envs: BOT_TOKEN | |
script: | |
docker compose -f /home/pi/Bot_Data/charidiots/docker-compose-dev.yml up -d --build && sudo docker image prune -f |