29 lines
688 B
YAML
29 lines
688 B
YAML
---
|
|
kind: pipeline
|
|
name: default
|
|
concurrency:
|
|
limit: 1
|
|
steps:
|
|
- name: build and upload
|
|
image: golang:1.14.0-alpine3.11
|
|
pull: always
|
|
environment:
|
|
FTP_PASS:
|
|
from_secret: ftp_pass
|
|
WEBMENTIONIO_TOKEN:
|
|
from_secret: webmentionio_token
|
|
commands:
|
|
- apk add --no-cache curl make
|
|
- mkdir -p ~/.config/rclone
|
|
- make rclone_config
|
|
- cat ~/.config/rclone/rclone.conf
|
|
- make install_deps
|
|
- curl "https://webmention.io/api/mentions?token=$$WEBMENTIONIO_TOKEN" -o data/mentions.json
|
|
- ls -lah data/
|
|
- cat data/mentions.json
|
|
- make build
|
|
- make ftp_upload
|
|
when:
|
|
branch:
|
|
- master
|