This commit is contained in:
parent
6a4c130d5d
commit
b3320ec492
41
.drone.yml
41
.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
|
||||
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user