From 067adc83f0b0031444c534f8ad12844c66553aa5 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Wed, 30 Mar 2022 12:08:43 +0200 Subject: [PATCH] Deploy documentation on self hosted static host --- .gitlab-ci.yml | 22 ++++++++++++++++++++-- public/index.html | 17 ----------------- 2 files changed, 20 insertions(+), 19 deletions(-) delete mode 100644 public/index.html diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 678565929..edb7f77f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -240,8 +240,8 @@ build_front: tags: - docker -pages: - stage: test +build_documentation: + stage: build image: python:3.10 variables: BUILD_PATH: "../public" @@ -268,6 +268,24 @@ pages: tags: - docker +deploy_documentation: + stage: deploy + image: alpine + dependencies: + - build_documentation + before_script: + - apk add openssh-client rsync + - mkdir -p ~/.ssh + - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts + - eval `ssh-agent -s` + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + script: + - rsync -r -e "ssh -p 2282" $CI_PROJECT_DIR/public/ docs@docs.funkwhale.audio:/htdocs/ + only: + - stable + + .docker_publish: stage: deploy image: egon0/docker-with-buildx-and-git:bash diff --git a/public/index.html b/public/index.html deleted file mode 100644 index e4927a5d3..000000000 --- a/public/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - Page Redirection - - - - If you are not redirected automatically, follow this link. - - -