kind: pipeline type: docker name: deploy_hugo steps: - name: build image: klakegg/hugo environment: HUGO_ENVIRONMENT: production HUGO_ENV: production - name: push image: debian environment: GIT_SSH_KEY: from_secret: GIT_SSH_PRIVATE GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no commands: - mkdir ~/.ssh - umask 077 - echo "$GIT_SSH_KEY" > ~/.ssh/id_ed25519 - umask 000 - apt-get update && apt-get install git -y - cd public - git init - git remote add origin git@hyang.xyz:hyang/hyang.xyz.git - git add . - git commit -m '[ci] deploy' - git push -f -u origin master