Add deploy stage to druid
This commit is contained in:
parent
6b4b226206
commit
48bb11115e
@ -30,6 +30,18 @@ jobs:
|
|||||||
echo "===== Validating $(basename $PWD) =====" &&
|
echo "===== Validating $(basename $PWD) =====" &&
|
||||||
docker compose config > /dev/null
|
docker compose config > /dev/null
|
||||||
done
|
done
|
||||||
|
- name: Deploy new config
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: ${{ vars.SSH_HOST_IP_DRUID }} # this is a LAN IP
|
||||||
|
username: ${{ vars.SSH_USERNAME_DRUID }}
|
||||||
|
key: ${{ secrets.SSH_KEY_DEPLOY_TO_DRUID }}
|
||||||
|
script: |
|
||||||
|
for stack in /home/$USER/homelab/druid/config/*
|
||||||
|
do cd $stack &&
|
||||||
|
echo "===== Deploying $(basename $PWD) =====" &&
|
||||||
|
docker compose up -d
|
||||||
|
done
|
||||||
|
|
||||||
Notify:
|
Notify:
|
||||||
runs-on: druid
|
runs-on: druid
|
||||||
|
Loading…
Reference in New Issue
Block a user