This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
geeklabor_legacy/.drone.yml
Robert Kaussow eb58bcc7a7
Some checks failed
continuous-integration/drone/push Build is failing
prepare archiving
2020-07-18 22:42:16 +02:00

82 lines
1.4 KiB
YAML

---
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
- name: build
image: klakegg/hugo:0.53-alpine
commands:
- hugo --theme geeklab
- name: publish
image: plugins/s3-sync
settings:
access_key:
from_secret: s3_access_key
bucket: thegeeklab
delete: true
endpoint: https://sp.rknet.org
path_style: true
secret_key:
from_secret: s3_secret_access_key
source: exampleSite/public/
strip_prefix: exampleSite/public/
target: /legacy
when:
ref:
- refs/heads/master
- refs/tags/**
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**
---
kind: pipeline
name: notifications
platform:
os: linux
arch: amd64
steps:
- name: matrix
image: plugins/matrix
settings:
homeserver:
from_secret: matrix_homeserver
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
username:
from_secret: matrix_username
when:
status:
- success
- failure
trigger:
ref:
- refs/heads/master
- refs/tags/**
status:
- success
- failure
depends_on:
- build
---
kind: signature
hmac: 1998604c6ac9e5a083a7a1e7c1b54f29ff7ca94914c25fb41fed5a95932b13b1
...