mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 16:44:39 +00:00
trying to also add neocities uploads to website
This commit is contained in:
parent
5871f3e8de
commit
2853c31534
1 changed files with 6 additions and 1 deletions
|
@ -29,9 +29,14 @@ deploy-job: # This job runs in the deploy stage.
|
|||
before_script:
|
||||
- if [ -z "$DEPLOY_PRIVATE_KEY" ]; then echo "Can't deploy without a private key."; exit 1; fi
|
||||
- echo "Installing the dependencies..."
|
||||
- apk add rsync openssh-client
|
||||
- apk add rsync openssh-client curl jq
|
||||
- mkdir -m 700 -p ~/.ssh
|
||||
- echo "$DEPLOY_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- curl https://gitlab.com/dev_urandom/neocities-uploader/-/raw/main/upload.sh?inline=false > upload.sh
|
||||
- chmod +x upload.sh
|
||||
- echo "N_USER=\"${NEOCITIES_USERNAME}\"" > upload.pwd
|
||||
- echo "N_PWD=\"${NEOCITIES_PASSWORD}\"" >> upload.pwd
|
||||
script:
|
||||
- rsync -e "ssh -o StrictHostKeyChecking=no" -ciIlprz out/ deploy@devurandom.xyz:~/out/
|
||||
- ./upload.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue