Tyler Perkins
912272c5f0
All checks were successful
continuous-integration/drone/push Build is passing
35 lines
940 B
YAML
35 lines
940 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: build-and-deploy
|
|
|
|
steps:
|
|
- name: build
|
|
image: plugins/hugo
|
|
settings:
|
|
extended: true
|
|
validate: true
|
|
- name: upload-to-minio
|
|
image: amazon/aws-cli
|
|
environment:
|
|
AWS_ACCESS_KEY_ID:
|
|
from_secret: minio_access_key
|
|
AWS_SECRET_ACCESS_KEY:
|
|
from_secret: minio_secret_access_key
|
|
AWS_DEFAULT_REGION: gluttony
|
|
AWS_S3_ENDPOINT: https://gluttony.s3.clortox.com/
|
|
commands:
|
|
- aws s3 rm s3://clortox.com --recursive --endpoint-url $AWS_S3_ENDPOINT
|
|
- aws s3 cp public s3://clortox.com/ --recursive --endpoint-url $AWS_S3_ENDPOINT
|
|
- name: notify
|
|
image: clortox/drone-ntfy
|
|
settings:
|
|
URL: https://ntfy.clortox.com
|
|
USERNAME: drone
|
|
PASSWORD:
|
|
from_secret: ntfy_password
|
|
TOPIC: drone-builds
|
|
MESSAGE: clortox.com has deployed!
|
|
CLICK: https://www.clortox.com/
|
|
TITLE: Website Deploymen
|
|
|