Fix: remove build: from compose.yml; clean up debug logs
All checks were successful
Deploy / deploy (push) Successful in 57s
All checks were successful
Deploy / deploy (push) Successful in 57s
podman-compose was rebuilding the image on every service restart using the Containerfile, but without --build-arg WEBMENTION_TOKEN. This silently discarded the token that the CI build had baked in. Removing the build: block means restarts reuse the pre-built image tagged by CI. Also removes all temporary debug console.log statements. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
a379e65c7a
commit
46701e959f
4 changed files with 1 additions and 13 deletions
|
|
@ -37,12 +37,7 @@ jobs:
|
|||
sudo podman build \
|
||||
--no-cache \
|
||||
--build-arg WEBMENTION_TOKEN="${{ secrets.WEBMENTION_TOKEN }}" \
|
||||
-t localhost/adrian-altner.de:latest . 2>&1 | tee /tmp/podman-build.log
|
||||
echo "--- token-len check ---"
|
||||
grep 'token-len=' /tmp/podman-build.log || echo "(no token-len in build output)"
|
||||
echo "--- webmentions check ---"
|
||||
sudo podman run --rm localhost/adrian-altner.de:latest sh -c \
|
||||
'grep -c "section class=\"webmentions\"" /app/dist/client/setting-up-forgejo-actions-runner/index.html 2>/dev/null && echo WEBMENTIONS_OK || echo WEBMENTIONS_MISSING'
|
||||
-t localhost/adrian-altner.de:latest .
|
||||
|
||||
- name: Restart service
|
||||
run: sudo systemctl restart podman-compose@adrian-altner.de.service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue