From 13c6782e3868c38b9f20d89b14f5933ddf47ce4b Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Tue, 8 May 2018 12:07:18 -0700 Subject: [PATCH 1/5] Add test build --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index b7f9fc1abb1..f0237f1b47b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,11 @@ --- pipeline: + test: + image: plugins/docker + dockerfile: Dockerfile.prod + repo: rancherlabs/website + context: . + docker-publish-dev: group: publish image: plugins/docker From 2ec35b86b6ed92490867d0d8407d82db9b9b0b76 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Tue, 8 May 2018 12:11:22 -0700 Subject: [PATCH 2/5] Syntax highlighting codefences --- config.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.toml b/config.toml index e939f6f2830..1f90703517a 100644 --- a/config.toml +++ b/config.toml @@ -7,6 +7,8 @@ pluralizeListTitles = false # disableKinds = ["RSS"] enableRobotsTXT = true +pygmentsCodeFences=true +pygmentsCodeFencesGuessSyntax=true [permalinks] inside-pages = "/:filename/" From f3832dc34264b28dd94415e5baf3d9f95b43cae2 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Tue, 8 May 2018 12:12:31 -0700 Subject: [PATCH 3/5] Try again --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index f0237f1b47b..23a21eb6f23 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,7 @@ pipeline: test: image: plugins/docker dockerfile: Dockerfile.prod - repo: rancherlabs/website + repo: rancher/docs context: . docker-publish-dev: From e236b7ec122db91c3960be284e08720569e8f355 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Tue, 8 May 2018 12:56:47 -0700 Subject: [PATCH 4/5] DinD --- .drone.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 23a21eb6f23..9d6f18de774 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,14 @@ --- pipeline: - test: - image: plugins/docker - dockerfile: Dockerfile.prod - repo: rancher/docs - context: . + build: + privileged: true + image: docker:stable-dind + volumes: + - /var/run/docker.sock:/var/run/docker.sock + commands: + - docker build -f Dockerfile.prod . + when: + event: [pull_request] docker-publish-dev: group: publish From fb7c3d0c02da522a913fd0216e3b35e9de4bfb79 Mon Sep 17 00:00:00 2001 From: Vincent Fiduccia Date: Tue, 8 May 2018 12:59:51 -0700 Subject: [PATCH 5/5] test --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 9d6f18de774..81a13a72efa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,7 @@ --- pipeline: build: + # Do things privileged: true image: docker:stable-dind volumes: