2023-09-08 23:04:51 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build-and-deploy
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: plugins/hugo
|
|
|
|
settings:
|
|
|
|
hugo_version: 0.79.0
|
|
|
|
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:
|
2023-09-08 23:12:31 +00:00
|
|
|
- aws s3 rm s3://clortox.com --recursive --endpoint-url $AWS_S3_ENDPOINT
|
2023-09-08 23:10:14 +00:00
|
|
|
- aws s3 cp public s3://clortox.com/ --recursive --endpoint-url $AWS_S3_ENDPOINT
|
2023-09-08 23:04:51 +00:00
|
|
|
|