Update .drone.yml
continuous-integration/drone/push Build is passing Details

Change type to docker
Build only index.adoc
This commit is contained in:
Lukáš Kucharczyk 2021-10-06 14:07:08 +02:00
parent 1a51f3815c
commit 2ffa7cd67b
1 changed files with 22 additions and 21 deletions

View File

@ -1,28 +1,29 @@
---
kind: pipeline
name: upload to minio
type: docker
name: update website
steps:
- name: build
image: registry.kucharczyk.tech/asciidoctor
commands:
- "asciidoctor -D public asciidoc/*.adoc"
- name: upload
image: plugins/s3
settings:
bucket: kucharczyk.xyz
access_key:
from_secret: minio_kucharczyk_xyz_access_key
secret_key:
from_secret: minio_kucharczyk_xyz_secret_key
source: public/**
strip_prefix: public/
path_style: true
target: /
endpoint: https://bucket.kucharczyk.xyz
- name: build
image: registry.kucharczyk.tech/asciidoctor
commands:
- "asciidoctor -D public asciidoc/index.adoc"
- name: upload
image: plugins/s3
settings:
bucket: kucharczyk.xyz
access_key:
from_secret: minio_kucharczyk_xyz_access_key
secret_key:
from_secret: minio_kucharczyk_xyz_secret_key
source: public/**
strip_prefix: public/
path_style: true
target: /
endpoint: https://bucket.kucharczyk.xyz
trigger:
event:
- push
- cron
- push
- cron
exclude:
- pull_request
- pull_request