CI: pass GRAYLOG_ADMIN_PASSWORD through deploy-from-scratch.yml too

deploy.yml already forwarded this secret; deploy-from-scratch.yml didn't,
so a re-run against an already-initialized Graylog (one-time credentials
file already consumed by an earlier successful run) died at
resolve_admin_password with "Cannot find admin password" - confirmed
live.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
byrsapty 2026-07-23 03:33:23 +03:00
parent 7274cee1eb
commit ab3f560d4a

View file

@ -19,6 +19,13 @@ jobs:
env:
CI_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
# Only used on a re-run after the one-time credentials file was
# already consumed by an earlier successful run (fresh installs
# generate their own password and don't need this). Without it,
# a repeat run of this workflow against an already-initialized
# Graylog dies at resolve_admin_password with "Cannot find admin
# password" - confirmed live.
GRAYLOG_ADMIN_PASSWORD: ${{ secrets.GRAYLOG_ADMIN_PASSWORD }}
run: |
rm -rf /tmp/graylog-deploy-ci-host
git clone --depth 1 --branch main "https://x-access-token:${CI_TOKEN}@git.zotac.keenetic.link/zotac/graylog-deploy.git" /tmp/graylog-deploy-ci-host