[c] add placeholder to debug.json
All checks were successful
Build and push docker image / publish (push) Successful in 49s

This commit is contained in:
Sangelo 2024-06-05 09:59:06 +02:00
parent 3ffb88f513
commit b14080ada4
2 changed files with 4 additions and 4 deletions

View file

@ -32,8 +32,8 @@ jobs:
run: |
export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
export SHA=$(echo "${{ github.sha }}")
sed -i "s|\"commit\": \"\"|\"commit\": \"$SHA\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (commit hash)"
sed -i "s|\"tag\": \"\"|\"tag\": \"$TAG\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (git tag)"
sed -i "s|\"commit\": \"unavailable\"|\"commit\": \"$SHA\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (commit hash)"
sed -i "s|\"tag\": \"unavailable\"|\"tag\": \"$TAG\"|" /workspace/sangelo/website/static/assets/debug.json || echo "Failed to plant debug info into debug.json. (git tag)"
echo "Successfully planted debug info into debug.json"
- name: 🐋 Build Container

View file

@ -1,4 +1,4 @@
{
"commit": "",
"tag": ""
"commit": "unavailable",
"tag": "unavailable"
}