diff options
author | Alex Auvolat <alex@adnab.me> | 2022-01-27 15:38:40 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-01-27 15:38:48 +0100 |
commit | a626c7914143f93cd98ad0a679a777a480892625 (patch) | |
tree | 66463a94d9bbbbdd2a420fa59610f47c12575877 | |
parent | a8d6c4635cf4e49320ebee8ee6f348769b65ffa8 (diff) | |
download | garagehq.deuxfleurs.fr-a626c7914143f93cd98ad0a679a777a480892625.tar.gz garagehq.deuxfleurs.fr-a626c7914143f93cd98ad0a679a777a480892625.zip |
Add Drone CI file
-rw-r--r-- | .drone.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..6b3ca4b --- /dev/null +++ b/.drone.yml @@ -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 |