diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7d160ba --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +--- +kind: pipeline +type: docker +name: publish + +steps: +steps: +- name: fetch_submodules + image: alpine/git + commands: + - ls -lah themes/tango + - git submodule update --init + - ls -lah themes/tango +- name: build + image: fat0troll/hugo + commands: + - hugo -d tango.hodakov.me +- name: publish + image: appleboy/drone-scp + settings: + host: + from_secret: web_host + username: + from_secret: ssh_user + password: + from_secret: ssh_password + target: + from_secret: web_target + rm: true + strip_components: 1 + source: + - tango.hodakov.me/* +trigger: + branch: + - master \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 21bd3d3..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,29 +0,0 @@ -image: lab.wtfteam.pro:4567/containers/hugo:latest - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -build site: - stage: build - script: - - hugo -d tango.hodakov.me - artifacts: - untracked: true - expire_in: 4 hours - paths: - - tango.hodakov.me - -deploy site: - stage: deploy - only: - - master - before_script: - - apk add --no-cache openssh-client - - mkdir -p ~/.ssh - - echo "$DEPLOY_KEY" | tr -d '\r' > ~/.ssh/id_rsa - - chmod 600 ~/.ssh/id_rsa - - eval "$(ssh-agent -s)" - - ssh-add ~/.ssh/id_rsa - - ssh-keyscan -H $DEPLOY_HOST >> ~/.ssh/known_hosts - script: - - scp -r tango.hodakov.me $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH diff --git a/.gitmodules b/.gitmodules index e61bfb6..d1618b7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "themes/tango"] path = themes/tango - url = ../hugo-tango-theme.git + url = https://source.hodakov.me/fat0troll/hugo-tango-theme.git