mirror of
https://codeberg.org/librarian/docs
synced 2024-12-06 19:16:47 +01:00
Optimize CI
This commit is contained in:
+2
-3
@@ -4,9 +4,8 @@ pipeline:
|
||||
commands:
|
||||
- mkdocs build
|
||||
deploy:
|
||||
image: alpine:latest
|
||||
image: codeberg.org/video-prize-ranch/git-openssh-alpine:latest
|
||||
commands:
|
||||
- apk add git openssh
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_ed25519
|
||||
- chmod 600 ~/.ssh/id_ed25519
|
||||
@@ -15,7 +14,7 @@ pipeline:
|
||||
- ssh-keyscan -H 'codeberg.org' >> ~/.ssh/known_hosts
|
||||
- git config --global user.email "23rnofonsaf@wfonpwef.q1rnog"
|
||||
- git config --global user.name "Codeberg CI"
|
||||
- git clone git@codeberg.org:librarian/pages.git
|
||||
- git clone --depth 1 git@codeberg.org:librarian/pages.git
|
||||
- cd pages
|
||||
- rm -rf docs
|
||||
- mv ../site docs
|
||||
|
||||
Reference in New Issue
Block a user