2022-01-27 14:38:40 +00:00
|
|
|
---
|
|
|
|
# see https://docs.drone.io/pipeline/configuration/
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- 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-01-27 14:49:19 +00:00
|
|
|
command: [ "build", "-u", "https://garagehq-new.garage-staging-web.home.adnab.me" ]
|
2022-01-27 14:38:40 +00:00
|
|
|
|
|
|
|
- name: upload
|
|
|
|
image: plugins/s3
|
|
|
|
settings:
|
|
|
|
bucket: garagehq-new
|
|
|
|
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
|
|
|
|
endpoint: https://garage-staging.home.adnab.me
|
|
|
|
region: garage-staging
|
|
|
|
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-01-27 14:49:19 +00:00
|
|
|
hmac: a34894addd2abd4d994eaad831021b8aabaffa8ccbbb2ad9e4bcca01cbc85460
|
2022-01-27 14:41:22 +00:00
|
|
|
|
|
|
|
...
|