Fix CI workflow: use plain git clone instead of actions/checkout

actions/checkout@v4 is a Node.js-based action; the self-hosted runner
executes in host mode directly on the Graylog appliance container, which
has no Node.js and shouldn't need one just to check out a repo. A plain
git clone avoids the dependency entirely.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
byrsapty 2026-07-22 21:35:03 +03:00
parent 510ca37e48
commit 32ccb22c88

View file

@ -6,13 +6,18 @@ jobs:
deploy: deploy:
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- uses: https://code.forgejo.org/actions/checkout@v4 # Plain git clone instead of actions/checkout@v4: that action is a
# Node.js-based action, and this runner executes in host mode (no
- name: Run install-graylog.sh (idempotent - only applies what changed) # Docker) directly on the Graylog appliance container, which has no
# Node.js installed and shouldn't need one just for CI checkout.
- name: Deploy
env: env:
GRAYLOG_EXTERNAL_URI: http://93.171.241.5:9000/ GRAYLOG_EXTERNAL_URI: http://93.171.241.5:9000/
GRAYLOG_ADMIN_PASSWORD: ${{ secrets.GRAYLOG_ADMIN_PASSWORD }} GRAYLOG_ADMIN_PASSWORD: ${{ secrets.GRAYLOG_ADMIN_PASSWORD }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: | run: |
rm -rf /tmp/graylog-deploy-ci
git clone --depth 1 --branch main https://git.zotac.keenetic.link/zotac/graylog-deploy.git /tmp/graylog-deploy-ci
cd /tmp/graylog-deploy-ci
chmod +x install-graylog.sh chmod +x install-graylog.sh
./install-graylog.sh ./install-graylog.sh