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

83 lines
1.4 KiB
YAML
Raw Normal View History

2019-01-13 15:58:22 +01:00
---
kind: pipeline
2020-07-18 22:42:16 +02:00
name: build
platform:
os: linux
arch: amd64
2019-01-13 15:58:22 +01:00
steps:
2020-07-18 22:42:16 +02:00
- name: build
image: klakegg/hugo:0.53-alpine
commands:
- hugo --theme geeklab
2018-12-20 00:13:43 +01:00
2020-07-18 22:42:16 +02:00
- name: publish
2023-09-27 22:49:02 +02:00
image: thegeeklab/drone-s3-sync:2
2020-07-18 22:42:16 +02:00
settings:
access_key:
from_secret: s3_access_key
bucket: thegeeklab
delete: true
2023-09-27 22:49:02 +02:00
endpoint:
from_secret: s3_endpoint
2020-07-18 22:42:16 +02:00
path_style: true
secret_key:
from_secret: s3_secret_access_key
2020-07-18 22:43:31 +02:00
source: public/
strip_prefix: public/
2020-07-18 22:42:16 +02:00
target: /legacy
when:
ref:
- refs/heads/master
- refs/tags/**
2018-12-20 00:13:43 +01:00
2020-07-18 22:42:16 +02:00
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**
2020-07-18 22:42:16 +02:00
---
kind: pipeline
name: notifications
2020-07-18 22:42:16 +02:00
platform:
os: linux
arch: amd64
steps:
2023-09-28 20:36:23 +02:00
- name: notification
image: thegeeklab/drone-matrix
2020-07-18 22:42:16 +02:00
settings:
homeserver:
from_secret: matrix_homeserver
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
2023-09-28 20:36:23 +02:00
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 }}"
2020-07-18 22:42:16 +02:00
username:
from_secret: matrix_username
when:
status:
- success
- failure
trigger:
ref:
- refs/heads/master
- refs/tags/**
status:
- success
- failure
depends_on:
- build
---
kind: signature
2023-09-27 22:49:02 +02:00
hmac: 0f119a348a8848acfa57ef41f5913c59654042cf86106ea9dbd5380bb3502cb5
2020-07-18 22:42:16 +02:00
...