2021-12-09 13:58:38 +00:00
|
|
|
---
|
|
|
|
# see https://docs.drone.io/pipeline/configuration/
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build and publish
|
|
|
|
image: klakegg/hugo:0.90.0-alpine
|
|
|
|
environment:
|
|
|
|
AWS_ACCESS_KEY_ID:
|
|
|
|
from_secret: aws_access_key_id
|
|
|
|
AWS_SECRET_ACCESS_KEY:
|
|
|
|
from_secret: aws_secret_access_key
|
|
|
|
commands:
|
|
|
|
- hugo
|
|
|
|
- hugo deploy
|
2021-12-09 14:05:03 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
|
|
|
|
2021-12-09 13:58:38 +00:00
|
|
|
---
|
|
|
|
kind: signature
|
2021-12-09 14:05:03 +00:00
|
|
|
hmac: 5fc38cf903fe1aaea273b0c99f4eacb442408d2b1fcf8d6a9343112922eeaf97
|
2021-12-09 13:58:38 +00:00
|
|
|
|
|
|
|
...
|