Maintain a symlink to CI/CD latest

This commit is contained in:
Magnus Åhall 2024-06-12 10:19:30 +02:00
parent a8be328a6d
commit b19558dd78

View File

@ -33,4 +33,5 @@ jobs:
export SSH_KEY_FILE=$(mktemp)
echo '${{secrets.CICD_SSH_KEY}}' >$SSH_KEY_FILE
scp -i $SSH_KEY_FILE wireguard-mfa.exe "filehosting:/var/www/git.gibonuddevalla.se/cicd/wireguard-mfa_${{gitea.sha}}.exe"
ssh -i $SSH_KEY_FILE filehosting "ln -sf /var/www/git.gibonuddevalla.se/cicd/wireguard-mfa_${{gitea.sha}}.exe /var/www/git.gibonuddevalla.se/cicd/wireguard-mfa_latest.exe"
rm -v $SSH_KEY_FILE