From 2853c3153423d553b2640a6599a278135e22faca Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Wed, 16 Mar 2022 19:50:58 +0300 Subject: [PATCH] trying to also add neocities uploads to website --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b41db3..6c992cb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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