Skip to content

Commit

Permalink
fix: envs were not being passed to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
SpudsTheCyan committed Aug 5, 2024
1 parent 62d7ad9 commit 8e4349a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/dev_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@ jobs:
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 }}
envs: BOT_TOKEN
script:
docker compose -f /home/pi/Bot_Data/charidiots/docker-compose-dev.yml up -d --build && sudo docker image prune -f
9 changes: 2 additions & 7 deletions .github/workflows/runnner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@ jobs:
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
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:
envs: BOT_TOKEN
script:
docker compose -f /home/pi/Bot_Data/charidiots/docker-compose.yml up -d --build && sudo docker image prune -f

0 comments on commit 8e4349a

Please sign in to comment.