From c432137a3130aa57efae6497180e6eae541e421f Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 15 Feb 2024 01:47:30 -0800 Subject: [PATCH] Add deploy stage to druid --- homelab/.gitea/workflows/deploy-to-druid.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/homelab/.gitea/workflows/deploy-to-druid.yml b/homelab/.gitea/workflows/deploy-to-druid.yml index d8cdcd59..8b0ad497 100644 --- a/homelab/.gitea/workflows/deploy-to-druid.yml +++ b/homelab/.gitea/workflows/deploy-to-druid.yml @@ -30,6 +30,18 @@ jobs: echo "===== Validating $(basename $PWD) =====" && docker compose config > /dev/null 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: runs-on: druid