From 5294046ec0e6a9616a8a94d932d69c90f507b4c3 Mon Sep 17 00:00:00 2001 From: Dan Beghin Date: Tue, 1 Sep 2020 11:40:13 -0500 Subject: [PATCH] chore(build): add test deploy (#8) --- .buildkite/pipeline.yaml | 25 +++++++++++++++++++++++++ .gitignore | 1 - _config_test.yml | 5 +++++ _posts/2020-07-13-hello-world.md | 8 ++++++++ 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .buildkite/pipeline.yaml create mode 100644 _config_test.yml create mode 100644 _posts/2020-07-13-hello-world.md diff --git a/.buildkite/pipeline.yaml b/.buildkite/pipeline.yaml new file mode 100644 index 0000000..79fd565 --- /dev/null +++ b/.buildkite/pipeline.yaml @@ -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" +

View Test Blog

+ EOF + agents: + queue: builder diff --git a/.gitignore b/.gitignore index ca9dacd..45e8ddf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ _site -_posts .sass-cache .jekyll-metadata .DS_Store diff --git a/_config_test.yml b/_config_test.yml new file mode 100644 index 0000000..6def8fb --- /dev/null +++ b/_config_test.yml @@ -0,0 +1,5 @@ +# overrides for test deploy +url: https://buildkite.yden.us +guardian: + tracking: + google_analytics_code: "" diff --git a/_posts/2020-07-13-hello-world.md b/_posts/2020-07-13-hello-world.md new file mode 100644 index 0000000..11e9710 --- /dev/null +++ b/_posts/2020-07-13-hello-world.md @@ -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.