2022-01-27 14:38:40 +00:00
|
|
|
---
|
|
|
|
# see https://docs.drone.io/pipeline/configuration/
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
2022-02-02 09:07:26 +00:00
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
2022-02-02 09:12:24 +00:00
|
|
|
- cp -rv garage/doc/book content/documentation
|
2022-11-16 11:06:57 +00:00
|
|
|
- cp -rv garage/doc/api static/api
|
2022-02-02 09:07:26 +00:00
|
|
|
|
2022-01-27 14:38:40 +00:00
|
|
|
- name: build-css
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npx tailwindcss -i ./src/input.css -o ./static/style.css --minify
|
|
|
|
|
|
|
|
- name: build-zola
|
|
|
|
image: ghcr.io/getzola/zola:v0.15.3
|
2022-01-27 14:47:44 +00:00
|
|
|
entrypoint: [ "/bin/zola" ]
|
2022-02-05 12:03:11 +00:00
|
|
|
command: [ "build", "-u", "https://garagehq.deuxfleurs.fr" ]
|
2022-01-27 14:38:40 +00:00
|
|
|
|
|
|
|
- name: upload
|
|
|
|
image: plugins/s3
|
|
|
|
settings:
|
2022-02-05 12:03:11 +00:00
|
|
|
bucket: garagehq.deuxfleurs.fr
|
2022-01-27 14:38:40 +00:00
|
|
|
access_key:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
secret_key:
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
source: public/**/*
|
|
|
|
strip_prefix: public/
|
|
|
|
target: /
|
|
|
|
path_style: true
|
2022-02-05 12:03:11 +00:00
|
|
|
endpoint: https://garage.deuxfleurs.fr
|
|
|
|
region: garage
|
2022-01-27 14:38:40 +00:00
|
|
|
when:
|
|
|
|
branch:
|
2022-01-27 14:39:35 +00:00
|
|
|
- master
|
2022-01-27 14:38:40 +00:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
2022-01-27 14:41:22 +00:00
|
|
|
---
|
|
|
|
kind: signature
|
2022-02-05 12:03:11 +00:00
|
|
|
hmac: 8420ca485ee30f847d4f7f3bf8a40eedb5b4697c91ec1e7005366cdb30282c59
|
2022-01-27 14:41:22 +00:00
|
|
|
|
|
|
|
...
|