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 a9f08b720f
All checks were successful
continuous-integration/drone/push Build is passing
sign drone config
2023-09-28 21:32:34 +02:00

83 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: thegeeklab/drone-s3-sync:2
settings:
access_key:
from_secret: s3_access_key
bucket: thegeeklab
delete: true
endpoint:
from_secret: s3_endpoint
path_style: true
secret_key:
from_secret: s3_secret_access_key
source: public/
strip_prefix: 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: notification
image: thegeeklab/drone-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 }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}"
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: 0f3595ab9234753caff105f58ac91a11a5ccccd4495d844526c68cbfc2cde512
...