tci/.tci

18 lines
507 B
Text
Raw Normal View History

2024-02-13 22:03:36 +01:00
#!/bin/bash
echo "building tci"
cargo build --release
2024-02-13 22:39:28 +01:00
echo "installing tci"
2024-02-13 22:03:36 +01:00
cp ./target/release/tci /opt/bin/tci
# note that tci can NOT overwrite itself while it's running!
# to make this work, tci is the only repo with a custom hook
# installed: it just copies tci bin in a temp path and runs
# it from there, so the `cp` command above won't fail
#
# here is my custom post-update hook for tci:
# #!/bin/bash
# cp /opt/bin/tci /srv/git/.tci-tmp-ci
# /srv/git/.tci-tmp-ci $@
# rm /srv/git/.tci-tmp-ci