cicd
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2024-09-03 08:14:41 +03:00
parent 071f33f82a
commit 0a45563202
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -10,28 +10,11 @@ trigger:
image_pull_secrets: image_pull_secrets:
- DOCKER_AUTH - 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: {}
steps: steps:
- name: build site - name: build site
# https://hub.docker.com/r/library/docker # https://hub.docker.com/r/library/docker
image: docker.struchkov.dev/quartz:latest image: docker.struchkov.dev/quartz:latest
# volumes:
# - name: dockersock
# path: /var/run
commands: commands:
# - sleep 15
- cp -r ./* /usr/src/app/content - cp -r ./* /usr/src/app/content
- cp ./.quartz/quartz.config.ts /usr/src/app/ - cp ./.quartz/quartz.config.ts /usr/src/app/
- cp ./.quartz/quartz.layout.ts /usr/src/app/ - cp ./.quartz/quartz.layout.ts /usr/src/app/
@ -60,12 +43,13 @@ steps:
- ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts - ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- ls -la - ls -la
# - scp -r -P $SSH_DEPLOY_PORT ./public/* $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH - ssh -p $SSH_DEPLOY_PORT $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST "rm -rf $SSH_DEPLOY_PATH/*"
- scp -r -P $SSH_DEPLOY_PORT ./public/* $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
# drone sign --save upagge/digital-garden # drone sign --save upagge/digital-garden
--- ---
kind: signature kind: signature
hmac: b0fd7e108fa717c92bbcb8b371fb5b4a20e0c563f62ee649a6123f82e208a77d hmac: 9bdad34d737e99f66f9a6fdf42f3b212d3c4bd40fdd0413624925903b9481e1c
... ...