diff --git a/.drone.yml b/.drone.yml index 564e5fd..2132d5d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,9 +19,11 @@ steps: - name: clone image: alpine/git commands: + - "cat < /root/.netrc\nmachine git.seahi.me login oauth2 password ${DRONE_GIT_PASSWORD}\nEOF" + - "chmod 600 /root/.netrc" - "git config --global http.version HTTP/1.1" - "git config --global protocol.version 1" - - "git clone --depth=1 https://git.seahi.me/seahi/blogflare.git ." + - "git clone --depth=1 ${DRONE_REMOTE_URL} ." - "git checkout -qf ${DRONE_COMMIT_SHA}" - name: install