This commit is contained in:
parent
a8d6c4635c
commit
a626c79141
1 changed files with 38 additions and 0 deletions
38
.drone.yml
Normal file
38
.drone.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
---
|
||||||
|
# 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
|
||||||
|
commands:
|
||||||
|
- zola build
|
||||||
|
|
||||||
|
- 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:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- pull_request
|
Loading…
Reference in a new issue