From 76ef6b2284b4defc1125e5a99149194d093b05f0 Mon Sep 17 00:00:00 2001 From: cbrgm Date: Mon, 7 May 2018 01:22:41 +0200 Subject: [PATCH] Moving to new repository drone-plugins/drone-hugo --- Makefile | 16 ++++++++-------- README.md | 30 +++++++++++++++--------------- docs/tmpl.md | 30 +++++++++++++++--------------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/Makefile b/Makefile index a71cfe0..9ce5a62 100644 --- a/Makefile +++ b/Makefile @@ -5,15 +5,15 @@ README_TEMPLATE=./docs/tmpl.md all: release test: Dockerfile drone-hugo.sh - docker build -t "cbrgm/drone-hugo:$(hugo)_test" --build-arg HUGO_VERSION="$(hugo)" . + docker build -t "drone-plugins/drone-hugo:$(hugo)_test" --build-arg HUGO_VERSION="$(hugo)" . build: Dockerfile drone-hugo.sh - docker build -t "cbrgm/drone-hugo:$(hugo)" --build-arg HUGO_VERSION="$(hugo)" . - docker build -t "cbrgm/drone-hugo:latest" --build-arg HUGO_VERSION="$(hugo)" . + docker build -t "drone-plugins/drone-hugo:$(hugo)" --build-arg HUGO_VERSION="$(hugo)" . + docker build -t "drone-plugins/drone-hugo:latest" --build-arg HUGO_VERSION="$(hugo)" . push: build - docker push "cbrgm/drone-hugo:$(hugo)" - docker push "cbrgm/drone-hugo:latest" + docker push "drone-plugins/drone-hugo:$(hugo)" + docker push "drone-plugins/drone-hugo:latest" release: $(README_TEMPLATE) test build push clean sed 's//$(hugo)/g' $(README_TEMPLATE) > README.md @@ -22,6 +22,6 @@ release: $(README_TEMPLATE) test build push clean git push origin master clean: - docker rmi cbrgm/drone-hugo:$(hugo) - docker rmi cbrgm/drone-hugo:latest - docker rmi cbrgm/drone-hugo:$(hugo)_test + docker rmi drone-plugins/drone-hugo:$(hugo) + docker rmi drone-plugins/drone-hugo:latest + docker rmi drone-plugins/drone-hugo:$(hugo)_test diff --git a/README.md b/README.md index cbe9faf..39e473b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# cbrgm/drone-hugo +# drone-plugins/drone-hugo -[![GitHub release](https://img.shields.io/github/release/cbrgm/drone-hugo.svg)](https://github.com/cbrgm/drone-hugo/releases) ![](https://img.shields.io/badge/hugo%20version-v0.40.2-ff69b4.svg) -[![Docker Pulls](https://img.shields.io/docker/pulls/cbrgm/drone-hugo.svg)](https://hub.docker.com/r/cbrgm/drone-hugo/tags/) +[![GitHub release](https://img.shields.io/github/release/drone-plugins/drone-hugo.svg)](https://github.com/drone-plugins/drone-hugo/releases) ![](https://img.shields.io/badge/hugo%20version-v0.40.2-ff69b4.svg) +[![Docker Pulls](https://img.shields.io/docker/pulls/drone-plugins/drone-hugo.svg)](https://hub.docker.com/r/drone-plugins/drone-hugo/tags/) **Automatically create static web page files using Hugo within your drone pipeline!** -cbrgm/drone-hugo is: +drone-plugins/drone-hugo is: - **Easy** to implement in your existing pipeline using `.drone.yml` - **Small** 21mb image size @@ -18,7 +18,7 @@ The example below demonstrates how you can use the plugin to automatically creat ```yml pipeline: hugo: - image: cbrgm/drone-hugo:0.40.2 + image: drone-plugins/drone-hugo:0.40.2 validate: true ``` @@ -31,7 +31,7 @@ You can customize the paths for e. g. the theme, layout, content directory and o ```yml pipeline: hugo: - image: cbrgm/drone-hugo:0.40.2 + image: drone-plugins/drone-hugo:0.40.2 + config: path/to/config + content: path/to/content/ + layout: path/to/layout @@ -48,13 +48,13 @@ You can also define a base URL directly in the pipeline, which is used when gene ```yml pipeline: hugo: - image: cbrgm/drone-hugo:0.40.2 + image: drone-plugins/drone-hugo:0.40.2 config: path/to/config content: path/to/content/ output: path/to/public source: path/to/source theme: path/themes/THEMENAME/ -+ url: https://cbrgm.de ++ url: https://drone-plugins.de validate: true ``` @@ -69,7 +69,7 @@ You can set the `buildDrafts`, `buildExpired`, `buildFuture` settings to configu ```yml pipeline: hugo: - image: cbrgm/drone-hugo:0.40.2 + image: drone-plugins/drone-hugo:0.40.2 + buildDrafts: true + buildExpired: true + buildFuture: true @@ -78,7 +78,7 @@ pipeline: output: path/to/public source: path/to/source theme: path/themes/THEMENAME/ - url: https://cbrgm.de + url: https://drone-plugins.de validate: true ``` @@ -89,14 +89,14 @@ Here is a short example of how to define a pipeline that automatically generates ```yml pipeline: build: - image: cbrgm/drone-hugo:0.40.2 + image: drone-plugins/drone-hugo:0.40.2 output: site # Output path validate: true when: branch: [ master ] publish: image: appleboy/drone-scp - host: cbrgm.de + host: drone-plugins.de username: webuser password: xxxxxxx port: 54321 @@ -109,7 +109,7 @@ You can also use secrets to hide credentials: ```yml pipeline: build: - image: cbrgm/drone-hugo:0.40.2 + image: drone-plugins/drone-hugo:0.40.2 output: site # Output path validate: true when: @@ -117,7 +117,7 @@ pipeline: publish: image: appleboy/drone-scp + secrets: [ ssh_username, ssh_password ] - host: cbrgm.de + host: drone-plugins.de - username: webuser - password: xxxxxxx port: 54321 @@ -142,7 +142,7 @@ docker run --rm \ -e PLUGIN_VALIDATE=false \ -v $(pwd):$(pwd) \ -w $(pwd) \ - cbrgm/drone-hugo:latest + drone-plugins/drone-hugo:latest ``` ## Parameter Reference diff --git a/docs/tmpl.md b/docs/tmpl.md index f3cab97..db82e88 100644 --- a/docs/tmpl.md +++ b/docs/tmpl.md @@ -1,11 +1,11 @@ -# cbrgm/drone-hugo +# drone-plugins/drone-hugo -[![GitHub release](https://img.shields.io/github/release/cbrgm/drone-hugo.svg)](https://github.com/cbrgm/drone-hugo/releases) ![](https://img.shields.io/badge/hugo%20version-v-ff69b4.svg) -[![Docker Pulls](https://img.shields.io/docker/pulls/cbrgm/drone-hugo.svg)](https://hub.docker.com/r/cbrgm/drone-hugo/tags/) +[![GitHub release](https://img.shields.io/github/release/drone-plugins/drone-hugo.svg)](https://github.com/drone-plugins/drone-hugo/releases) ![](https://img.shields.io/badge/hugo%20version-v-ff69b4.svg) +[![Docker Pulls](https://img.shields.io/docker/pulls/drone-plugins/drone-hugo.svg)](https://hub.docker.com/r/drone-plugins/drone-hugo/tags/) **Automatically create static web page files using Hugo within your drone pipeline!** -cbrgm/drone-hugo is: +drone-plugins/drone-hugo is: - **Easy** to implement in your existing pipeline using `.drone.yml` - **Small** 21mb image size @@ -18,7 +18,7 @@ The example below demonstrates how you can use the plugin to automatically creat ```yml pipeline: hugo: - image: cbrgm/drone-hugo: + image: drone-plugins/drone-hugo: validate: true ``` @@ -31,7 +31,7 @@ You can customize the paths for e. g. the theme, layout, content directory and o ```yml pipeline: hugo: - image: cbrgm/drone-hugo: + image: drone-plugins/drone-hugo: + config: path/to/config + content: path/to/content/ + layout: path/to/layout @@ -48,13 +48,13 @@ You can also define a base URL directly in the pipeline, which is used when gene ```yml pipeline: hugo: - image: cbrgm/drone-hugo: + image: drone-plugins/drone-hugo: config: path/to/config content: path/to/content/ output: path/to/public source: path/to/source theme: path/themes/THEMENAME/ -+ url: https://cbrgm.de ++ url: https://drone-plugins.de validate: true ``` @@ -69,7 +69,7 @@ You can set the `buildDrafts`, `buildExpired`, `buildFuture` settings to configu ```yml pipeline: hugo: - image: cbrgm/drone-hugo: + image: drone-plugins/drone-hugo: + buildDrafts: true + buildExpired: true + buildFuture: true @@ -78,7 +78,7 @@ pipeline: output: path/to/public source: path/to/source theme: path/themes/THEMENAME/ - url: https://cbrgm.de + url: https://drone-plugins.de validate: true ``` @@ -89,14 +89,14 @@ Here is a short example of how to define a pipeline that automatically generates ```yml pipeline: build: - image: cbrgm/drone-hugo: + image: drone-plugins/drone-hugo: output: site # Output path validate: true when: branch: [ master ] publish: image: appleboy/drone-scp - host: cbrgm.de + host: drone-plugins.de username: webuser password: xxxxxxx port: 54321 @@ -109,7 +109,7 @@ You can also use secrets to hide credentials: ```yml pipeline: build: - image: cbrgm/drone-hugo: + image: drone-plugins/drone-hugo: output: site # Output path validate: true when: @@ -117,7 +117,7 @@ pipeline: publish: image: appleboy/drone-scp + secrets: [ ssh_username, ssh_password ] - host: cbrgm.de + host: drone-plugins.de - username: webuser - password: xxxxxxx port: 54321 @@ -142,7 +142,7 @@ docker run --rm \ -e PLUGIN_VALIDATE=false \ -v $(pwd):$(pwd) \ -w $(pwd) \ - cbrgm/drone-hugo:latest + drone-plugins/drone-hugo:latest ``` ## Parameter Reference