From b3320ec492c002146b8c753d24571b0272a3e12f Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Tue, 3 Sep 2024 07:55:40 +0300 Subject: [PATCH] cicd --- .drone.yml | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/.drone.yml b/.drone.yml index fd81eb21..b903f999 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,29 +10,34 @@ trigger: 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 +# 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: {} +# volumes: +# - name: dockersock +# temp: {} + +workspace: + path: /drone/src steps: - name: build site # https://hub.docker.com/r/library/docker - image: hub.docker.struchkov.dev/docker:27.1.2-dind-alpine3.20 - volumes: - - name: dockersock - path: /var/run + image: docker.struchkov.dev/quartz:latest + # volumes: + # - name: dockersock + # path: /var/run commands: - - sleep 15 - - docker run -v ./.quartz/quartz.config.ts:/usr/src/app/quartz.config.ts -v .:/usr/src/app/content -v ./public:/usr/src/app/public docker.struchkov.dev/quartz:latest build + # - sleep 15 + - cp .quartz/quartz.config.ts . + - cp .quartz/quartz.layout.ts . + - npx quartz build - name: publish to server image: private.docker.struchkov.dev/mkdocs:latest environment: @@ -60,6 +65,6 @@ steps: # drone sign --save upagge/digital-garden --- kind: signature -hmac: cba9924e2c1cfa3c94734db7fc328f44c71af65ff707f9f81809cc9729d34f64 +hmac: f821b2582a95172662e7df6cb472cb67de31311e604048f21732ed29d0f64fcb ...