Add compose config step to deploy
All checks were successful
Deploy to Fighter / Deploy-to-Fighter (push) Successful in 3s

This commit is contained in:
Joey Hafner 2024-02-13 11:27:37 -08:00
parent b981cfbb54
commit 32523eedba

View File

@ -15,4 +15,14 @@ jobs:
script: |
cd ~/homelab
git pull
echo "hello world" > ~/text.txt
- name: Validate compose configs
uses: appleboy/ssh-action@master
with:
host: ${{ vars.SSH_HOST_IP_FIGHTER }} # this is a LAN IP
username: ${{ vars.SSH_USERNAME_FIGHTER }}
key: ${{ secrets.SSH_KEY_DEPLOY_TO_FIGHTER }}
script: |
for stack in /home/$USER/homelab/fighter/config/*
do cd $stack && docker compose config
done