"Nairn": Phantom Gitea Deploy
Scenario: "Nairn": Phantom Gitea Deploy
Level: Medium
Type: Fix
Tags: gitea
Access: Email
Description: Every deployment through the Gitea Actions pipeline reports full success: checkout, build, deploy, service reload, and health check all pass with green checkmarks. Despite this, users keep seeing the previous version of the app after every deploy.
~/webapp is a git clone of the Gitea repo. Edit a file there, commit, and git push to trigger the Actions pipeline. Then figure out why the running webapp service never actually serves the version it just deployed — and fix it so a successful pipeline run always results in that version being served. For example:
cd ~/webapp && echo "v2" > index.html && git commit -am "bump" && git push
Root (sudo) Access: True
Test: The file /srv/app/current/index.html on the host and the content served by the webapp at http://localhost:80/ must match.
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can read and execute.
Time to Solve: 20 minutes.