aboutsummaryrefslogtreecommitdiff
path: root/.drone.yml
blob: efdad5aaecf6391786b3a139300bb374be87b0e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
# 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
    entrypoint: [ "/bin/zola" ]
    command: [ "build", "-u", "https://garagehq-new.garage-staging-web.home.adnab.me" ]

  - 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:
      - master
      event:
        exclude:
          - pull_request
---
kind: signature
hmac: a34894addd2abd4d994eaad831021b8aabaffa8ccbbb2ad9e4bcca01cbc85460

...