--- kind: pipeline type: docker name: docker-build-and-push trigger: branch: - master image_pull_secrets: - DOCKER_AUTH # services: # - name: docker # # https://hub.docker.com/r/library/docker # image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20 # privileged: true # volumes: # - name: dockersock # path: /var/run # volumes: # - name: dockersock # temp: {} workspace: path: /usr/src/app/ steps: - name: build site # https://hub.docker.com/r/library/docker image: docker.struchkov.dev/quartz:latest # volumes: # - name: dockersock # path: /var/run commands: # - sleep 15 - cp .quartz/quartz.config.ts . - cp .quartz/quartz.layout.ts . - pwd - ls -la - ls -la /usr/src/app/ - npx quartz build - name: publish to server image: private.docker.struchkov.dev/mkdocs:latest environment: SSH_DEPLOY_KEY: from_secret: SSH_DEPLOY_KEY SSH_DEPLOY_HOST: from_secret: SSH_DEPLOY_HOST SSH_DEPLOY_PORT: from_secret: SSH_DEPLOY_PORT SSH_DEPLOY_PATH: from_secret: SSH_DEPLOY_PATH SSH_DEPLOY_USER: from_secret: SSH_DEPLOY_USER commands: - eval $(ssh-agent -s) - mkdir -p ~/.ssh - echo "$SSH_DEPLOY_KEY" >> ~/.ssh/id_rsa - chmod 700 ~/.ssh - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts - scp -r -P $SSH_DEPLOY_PORT ./public/* $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH # drone sign --save upagge/digital-garden --- kind: signature hmac: 41e6ddd56b0d2492c8920febcb5d4af7c842da8f7d71ed57ac005a6452c99de3 ...