diff --git a/.drone.yml b/.drone.yml index 7b01959..b40e389 100644 --- a/.drone.yml +++ b/.drone.yml @@ -114,12 +114,25 @@ clone: steps: - name: build site image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest + environment: + GIT_SSH: + from_secret: GIT_SSH volumes: - name: mkdocs_cache path: ${DRONE_WORKSPACE}/documentation/.cache commands: + - eval $(ssh-agent -s) + - mkdir -p ~/.ssh + - echo "$GIT_SSH" >> ~/.ssh/id_rsa + - chmod 700 ~/.ssh + - chmod 600 ~/.ssh/id_rsa + - ssh-keyscan -p 222 git.struchkov.dev >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts + - git config --global user.name "${DRONE_COMMIT_AUTHOR_NAME}" + - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}" + - git remote add deploy ${DRONE_GIT_SSH_URL} - cd documentation - - mike deploy --prefix gitlab-notification --branch docs-deploy --push --update-aliases develop + - mike deploy --prefix gitlab-notification --branch docs-deploy --remote deploy --push --update-aliases develop image_pull_secrets: - DOCKER_AUTH @@ -131,6 +144,6 @@ volumes: --- kind: signature -hmac: fcd23a173d0a823ff39f9efe454d936476d49f03840034af7dd2c671571004d4 +hmac: 0d7c7b3a7531170530a785de9dac41a33f9c47045486e24fa1947ac04cfdd055 ...