ci: fix deploy_docs job after merge from stable
This commit is contained in:
parent
1493bbca69
commit
847d42b26b
|
@ -424,21 +424,14 @@ deploy_docs:
|
||||||
needs:
|
needs:
|
||||||
- job: build_docs
|
- job: build_docs
|
||||||
artifacts: true
|
artifacts: true
|
||||||
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/$CI_COMMIT_REF_NAME
|
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH =~ /(stable|develop)/
|
- if: $CI_COMMIT_BRANCH =~ /(stable|develop)/
|
||||||
|
|
||||||
image: $CI_REGISTRY/funkwhale/ci/python:3.11
|
image: $CI_REGISTRY/funkwhale/ci/python:3.11
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
script:
|
||||||
|
- rsync -r -e "ssh -p 2282" $CI_PROJECT_DIR/public/ docs@docs.funkwhale.audio:/htdocs/$CI_COMMIT_REF_NAME
|
||||||
|
|
||||||
.docker:
|
.docker:
|
||||||
interruptible: false
|
interruptible: false
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix CI deploy docs job after stable branch merge
|
Loading…
Reference in New Issue