Recognise host
parent
f4ebbaf2f0
commit
9c60fdee9d
|
@ -39,14 +39,15 @@ jobs:
|
|||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
echo "[pricklypear.cacti.makerforce.io]:26779 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGd9tL56+YUDQjyGy3iZNGUtjVkvAD442Q6Kt53Zsy8g" >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Re-pull
|
||||
run: |
|
||||
ssh -p 26779 datetime@pricklypear.cacti.makerforce.io podman pull ghcr.io/serverwentdown/datetime:latest
|
||||
ssh -p 26779 datetime@pricklypear.cacti.makerforce.io "podman login --username $GITHUB_ACTOR --password ${{ secrets.CR_PAT }} ghcr.io && podman pull ghcr.io/serverwentdown/datetime:latest"
|
||||
|
||||
- name: Restart
|
||||
run: |
|
||||
ssh -p 26779 datetime@pricklypear.cacti.makerforce.io bash -c 'podman stop datetime; podman rm datetime; podman run --detach --restart always --publish 127.0.0.1:4513:8000 --name datetime ghcr.io/serverwentdown/datetime:latest'
|
||||
ssh -p 26779 datetime@pricklypear.cacti.makerforce.io "podman stop datetime; podman rm datetime; podman run --detach --publish 127.0.0.1:4513:8000 --name datetime ghcr.io/serverwentdown/datetime:latest"
|
||||
|
||||
|
||||
# vim: set et ts=2 sw=2:
|
||||
|
|
Loading…
Reference in New Issue