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:
|
2020-03-18 08:55:36 +01:00
|
|
|
- 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:
|
2020-03-12 16:50:10 +01:00
|
|
|
- curl "https://webmention.io/api/mentions?token=$$WEBMENTIONIO_TOKEN" -o data/mentions.json
|
2020-02-27 15:19:57 +01:00
|
|
|
- make build
|
2020-03-18 08:55:36 +01:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
- name: upload
|
|
|
|
image: 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
|
2020-03-18 08:55:36 +01:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
- name: mention
|
2020-03-18 08:58:19 +01:00
|
|
|
image: quay.io/xsteadfastx/blog
|
2020-03-18 08:55:36 +01:00
|
|
|
pull: always
|
|
|
|
commands:
|
2020-03-17 12:58:18 +01:00
|
|
|
- npx webmention https://xsteadfastx.org/ --limit 10 --send --debug
|
2020-03-05 09:25:01 +01:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- master
|