Skip to content

Commit

Permalink
chore(build): add test deploy (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeg authored Sep 1, 2020
1 parent 20aec07 commit 5294046
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
steps:

- label: ":md: Publish test blog"
branches: !master
command:
- "echo 'baseurl: \"/jekyll-theme-guardian/${BUILDKITE_BUILD_NUMBER}/_site\"' >> _config_test.yml"
- "bundle install"
- "bundle exec jekyll build --drafts --config _config.yml,_config_test.yml"
agents:
queue: builder
artifact_paths: "_site/**/*"
plugins:
- docker#v3.5.0:
image: "ruby:2.6.3"
always-pull: true

- wait

- label: ":console: Annotate test blog link"
command: |
cat << EOF | buildkite-agent annotate --style "success"
<p class="h1"><a href="artifact://_site/index.html">View Test Blog</a></p>
EOF
agents:
queue: builder
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
_site
_posts
.sass-cache
.jekyll-metadata
.DS_Store
5 changes: 5 additions & 0 deletions _config_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# overrides for test deploy
url: https://buildkite.yden.us
guardian:
tracking:
google_analytics_code: ""
8 changes: 8 additions & 0 deletions _posts/2020-07-13-hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: post
title: "Hello World!"
date: 2020-07-13 12:37:44 -0500
categories: news
author: Dan Beghin
---
This is a test blog post for jekyll-theme-guardian.

0 comments on commit 5294046

Please sign in to comment.