Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (55 sloc) 1.11 KB
---
resource_types:
- name: rsync-resource
type: docker-image
source:
repository: mrsixw/concourse-rsync-resource
tag: latest
resources:
- name: mikebell-io
type: git
source:
branch: master
uri: https://github.com/mikebell/mikebell.io.git
- name: sync-resource
type: rsync-resource
source:
server: mikebell.io
base_dir: /var/www/mikebell.io
user : digital
private_key: ((concourse-priv))
disable_version_path: true
jobs:
- name: Build
public: true
plan:
- get: mikebell-io
trigger: true
- task: Build site
config:
platform: linux
inputs:
- name: mikebell-io
outputs:
- name: site
image_resource:
type: docker-image
source:
repository: jekyll/jekyll
tag: "3.8"
run:
path: sh
args:
- -exc
- |
ls -lash
chown jekyll:jekyll site
jekyll build -s mikebell-io -d site
- put: sync-resource
params: {
CONCOURSEPRIV: ((concourse-priv)),
"sync_dir": "site",
}
# - name: Publish
# plan:
# put: sync-resource