aboutsummaryrefslogblamecommitdiff
path: root/.drone.yml
blob: f5574e8151b6f9e7cc0101615e87b1a9816e1bd5 (plain) (tree)
1
2
3
4
5
6
7






                                                   




                                               







                                                                         
                               
                                                                                       
















                                                    
              


                        

               
                                                                      

   
---
# see https://docs.drone.io/pipeline/configuration/
kind: pipeline
type: docker
name: build

steps:
  - name: submodules
    image: alpine/git
    commands:
      - git submodule update --init --recursive

  - 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: cb40337a18f18f71a9a382900a2f38496aa0b7b35f35acd69ca119df9e0f90de

...