--- kind: pipeline type: docker name: default clone: disable: true steps: - name: pull changes image: alpine/git volumes: - name: public path: /public - name: ssh path: /.ssh environment: SSH_KEY: from_secret: ssh_key commands: - mkdir -p $HOME/.ssh - echo "$SSH_KEY" > $HOME/.ssh/id_ed25519 - chmod 600 $HOME/.ssh/id_ed25519 - ssh-keyscan -H m0e.space > $HOME/.ssh/known_hosts 2> /dev/null - cd /public - git pull origin master - git submodule update - name: build image: klakegg/hugo volumes: - name: public path: /public commands: - cd /public - hugo volumes: - name: public host: path: /var/www/qugalet