[IMP] add commit hash to footer and make checkout lighter
All checks were successful
Pin to IPFS / pin (push) Successful in 13s
All checks were successful
Pin to IPFS / pin (push) Successful in 13s
This commit is contained in:
parent
37986d0776
commit
fc81c1108b
2 changed files with 6 additions and 3 deletions
|
|
@ -57,9 +57,12 @@ jobs:
|
|||
args:
|
||||
- |
|
||||
set -e
|
||||
git clone https://git.ziemlichoptimal.de/niels/randomp2p.git /work/repo
|
||||
git init /work/repo
|
||||
cd /work/repo
|
||||
git checkout ${SHA}
|
||||
git remote add origin https://git.ziemlichoptimal.de/niels/randomp2p.git
|
||||
git fetch --depth 1 origin ${SHA}
|
||||
git checkout FETCH_HEAD
|
||||
sed -i "s/HASH/${SHA}/g" /work/repo/index.html
|
||||
rm -rf /work/repo/.git
|
||||
volumeMounts:
|
||||
- { name: work, mountPath: /work }
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@
|
|||
</section>
|
||||
|
||||
<footer>
|
||||
<p>© by neunzig.wtf · commit 87d2d0f</p>
|
||||
<p>© by neunzig.wtf · commit <span id="commit-hash">HASH</span></p>
|
||||
</footer>
|
||||
<script src="vendor/simplepeer.min.js"></script>
|
||||
<script src="vendor/qrcode.min.js"></script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue