Retrieves and parses an RSS/Atom feed from an arbitrary URL, and splits out each syndicated post into files on-disk.
resource_types:
- name: feed-resource
type: docker-image
source:
repository: syncaide/feed-resource
resources:
- name: my-blog
type: feed-resource
source:
url: https://example.com/rss.xml
insecure: true
url
- (required) The URL of the feed to consume. The feed file needs to comply with the gofeed library standard.insecure
- (optional) [false] Skip verification of remote TLS certificates.
jobs:
- name: feed-job
plan:
- get: my-blog
trigger: true
version: every
- task: build
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
tag: "16.04"
inputs:
- name: my-blog
run:
path: /bin/bash
args:
- -c
- |
cd my-blog
cat rss.xml