--- 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 - touch $HOME/.ssh/known_hosts - chmod 600 $HOME/.ssh/known_hosts - ssh-keyscan -H git@m0e.space > ~/.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