This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "▸ Installing GitHub Actions deploy public key..." | |
| # 1) Remove any prior version of this specific key | |
| mkdir -p ~/.ssh && chmod 700 ~/.ssh | |
| [ -f ~/.ssh/authorized_keys ] && grep -v 'cantillon-asset-collect' ~/.ssh/authorized_keys > /tmp/ak.tmp 2>/dev/null && mv /tmp/ak.tmp ~/.ssh/authorized_keys | |
| # 2) Download + append the canonical pubkey from gist | |
| curl -fsSL https://gist.githubusercontent.com/gksheep/e39dc0be51b5e6574753fac242697d54/raw \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH+UF3L2nsLD6c0fsw7PxkwaZ3oA7BLbG9NvSlf261L3 github-actions-deploy@cantillon-asset-collect |