[e+c] fix build pipeline
Some checks failed
Build and push docker image / publish (push) Failing after 6s
Some checks failed
Build and push docker image / publish (push) Failing after 6s
This commit is contained in:
parent
401edbc6c4
commit
a3bbc098be
1 changed files with 4 additions and 4 deletions
|
@ -30,10 +30,10 @@ jobs:
|
|||
|
||||
- name: Update debug.json with Git info
|
||||
run: |
|
||||
git rev-parse HEAD > commit_hash
|
||||
git describe --tags --abbrev=0 > tag
|
||||
sed -i "s|\"commit\": \"\"|\"commit\": \"$(cat commit_hash)\"|" static/assets/debug.json
|
||||
sed -i "s|\"tag\": \"\"|\"tag\": \"$(cat tag)\"|" static/assets/debug.json
|
||||
export TAG=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
|
||||
export SHA=$(echo "${{ github.sha }}")
|
||||
sed -i "s|\"commit\": \"\"|\"commit\": \"$SHA\"|" static/assets/debug.json
|
||||
sed -i "s|\"tag\": \"\"|\"tag\": \"$TAG\"|" static/assets/debug.json
|
||||
|
||||
- name: 🐋 Build Container
|
||||
run: |
|
||||
|
|
Loading…
Reference in a new issue