blog/.drone.yml

41 lines
830 B
YAML
Raw Normal View History

2020-02-27 15:11:23 +01:00
---
kind: pipeline
name: default
2020-03-11 18:38:55 +01:00
concurrency:
limit: 1
2020-02-27 15:11:23 +01:00
steps:
- name: build
2020-03-18 08:58:19 +01:00
image: quay.io/xsteadfastx/blog
2020-02-27 15:11:23 +01:00
pull: always
environment:
2020-03-12 16:45:18 +01:00
WEBMENTIONIO_TOKEN:
from_secret: webmentionio_token
2020-02-27 15:11:23 +01:00
commands:
- curl "https://webmention.io/api/mentions?token=$$WEBMENTIONIO_TOKEN" -o data/mentions.json
2020-02-27 15:19:57 +01:00
- make build
when:
branch:
- master
- name: upload
image: quay.io/xsteadfastx/blog
pull: always
environment:
FTP_PASS:
from_secret: ftp_pass
commands:
- make rclone_config
2020-02-27 15:11:23 +01:00
- make ftp_upload
when:
branch:
- master
- name: mention
2020-03-18 08:58:19 +01:00
image: quay.io/xsteadfastx/blog
pull: always
commands:
- npx webmention https://xsteadfastx.org/ --limit 10 --send --debug
2020-03-05 09:25:01 +01:00
when:
branch:
- master