Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ jobs:
echo "tag=latest" >> "$GITHUB_OUTPUT"
fi

- name: ✅ Verify deploy target is configured
env:
DEPLOY_HOST: ${{ vars.DEPLOY_HOST }}
DEPLOY_USER: ${{ vars.DEPLOY_USER }}
run: |
if [ -z "$DEPLOY_HOST" ] || [ -z "$DEPLOY_USER" ]; then
echo "::error::DEPLOY_HOST / DEPLOY_USER repo variables are empty — refusing to run a no-op deploy."
exit 1
fi

- name: 🔑 Set up SSH
run: |
mkdir -p ~/.ssh
Expand Down
5 changes: 4 additions & 1 deletion tmfeed/deploy.playbook.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
- name: Deploy FeedForBot
hosts: vds
# CI passes the host inline via `-i "<host>,"`, which lands it in the
# implicit `all` group, not `vds`. Targeting `vds` matched no hosts, so
# the playbook was silently skipped and deploys became no-ops.
hosts: all
vars:
feedforbot_token: "{{ lookup('env', 'FEEDFORBOT_TOKEN') }}"
feedforbot_sentry: "{{ lookup('env', 'FEEDFORBOT_SENTRY') | default('', true) }}"
Expand Down
Loading