ci: read WATCHTOWER_TOKEN from vars, not secrets
🚀 Docker Build and Push / build-and-push (push) Successful in 6m4s
🚀 Docker Build and Push / build-and-push (push) Successful in 6m4s
The token is stored as an instance-level Actions Variable (Site Administration > Actions > Variables), not a Secret. secrets.WATCHTOWER_TOKEN always resolved to empty, so the watchtower trigger request carried no Authorization value and was rejected (401 Invalid token attempt).
This commit is contained in:
1 parent
3221c34081
commit
89a7d4d67d
1 file changed
+1
-1
@@ -30,6 +30,6 @@ jobs:
|
||||
- name: 🔔 Trigger Watchtower
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
TOKEN: ${{ secrets.WATCHTOWER_TOKEN }}
|
||||
TOKEN: ${{ vars.WATCHTOWER_TOKEN }}
|
||||
run: |
|
||||
curl -X POST -H "Authorization: Bearer $TOKEN" http://192.168.1.118:3026/v1/update
|
||||
Reference in new issue
Block a user