ci: remove the ssh deploy job

deploy-nsite covers deployment now, and the rsync-over-ssh job was broken.
This commit is contained in:
Alex Gleason committed 2026-09-13 21:33:48 -05:00
1 parent 9d91542ec6
commit 4928819a0e
1 file changed
-18
-18
View File
@@ -28,24 +28,6 @@ test:
- npm run build - npm run build
- npm run test - npm run test
deploy:
stage: deploy
rules:
- if: $CI_COMMIT_TAG
when: never
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $DEPLOY_SSH_KEY && $DEPLOY_TARGET
script:
- npm ci
- npm run build
- cp dist/index.html dist/404.html
- apt-get update -qq && apt-get install -y --no-install-recommends rsync openssh-client >/dev/null
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- echo "$DEPLOY_SSH_KEY" | tr -d '\r' > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan -H "${DEPLOY_TARGET##*@}" >> ~/.ssh/known_hosts 2>/dev/null
- rsync -av --exclude=/sw.js --exclude=/index.html -e "ssh -i ~/.ssh/id_ed25519" dist/ "${DEPLOY_TARGET}:/"
- rsync -av -e "ssh -i ~/.ssh/id_ed25519" dist/index.html "${DEPLOY_TARGET}:/"
- rsync -av -e "ssh -i ~/.ssh/id_ed25519" dist/sw.js "${DEPLOY_TARGET}:/"
deploy-nsite: deploy-nsite:
stage: deploy stage: deploy
timeout: 10 minutes timeout: 10 minutes