Merge pull request #1 from drone-plugins/rename
Moving to new repository drone-plugins/drone-hugo
This commit is contained in:
commit
2686124968
16
Makefile
16
Makefile
@ -5,15 +5,15 @@ README_TEMPLATE=./docs/tmpl.md
|
|||||||
all: release
|
all: release
|
||||||
|
|
||||||
test: Dockerfile drone-hugo.sh
|
test: Dockerfile drone-hugo.sh
|
||||||
docker build -t "cbrgm/drone-hugo:$(hugo)_test" --build-arg HUGO_VERSION="$(hugo)" .
|
docker build -t "plugins/hugo:$(hugo)_test" --build-arg HUGO_VERSION="$(hugo)" .
|
||||||
|
|
||||||
build: Dockerfile drone-hugo.sh
|
build: Dockerfile drone-hugo.sh
|
||||||
docker build -t "cbrgm/drone-hugo:$(hugo)" --build-arg HUGO_VERSION="$(hugo)" .
|
docker build -t "plugins/hugo:$(hugo)" --build-arg HUGO_VERSION="$(hugo)" .
|
||||||
docker build -t "cbrgm/drone-hugo:latest" --build-arg HUGO_VERSION="$(hugo)" .
|
docker build -t "plugins/hugo:latest" --build-arg HUGO_VERSION="$(hugo)" .
|
||||||
|
|
||||||
push: build
|
push: build
|
||||||
docker push "cbrgm/drone-hugo:$(hugo)"
|
docker push "plugins/hugo:$(hugo)"
|
||||||
docker push "cbrgm/drone-hugo:latest"
|
docker push "plugins/hugo:latest"
|
||||||
|
|
||||||
release: $(README_TEMPLATE) test build push clean
|
release: $(README_TEMPLATE) test build push clean
|
||||||
sed 's/<HUGO_VERSION>/$(hugo)/g' $(README_TEMPLATE) > README.md
|
sed 's/<HUGO_VERSION>/$(hugo)/g' $(README_TEMPLATE) > README.md
|
||||||
@ -22,6 +22,6 @@ release: $(README_TEMPLATE) test build push clean
|
|||||||
git push origin master
|
git push origin master
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
docker rmi cbrgm/drone-hugo:$(hugo)
|
docker rmi plugins/hugo:$(hugo)
|
||||||
docker rmi cbrgm/drone-hugo:latest
|
docker rmi plugins/hugo:latest
|
||||||
docker rmi cbrgm/drone-hugo:$(hugo)_test
|
docker rmi plugins/hugo:$(hugo)_test
|
||||||
|
30
README.md
30
README.md
@ -1,11 +1,11 @@
|
|||||||
# cbrgm/drone-hugo
|
# 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)
|
[![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/cbrgm/drone-hugo.svg)](https://hub.docker.com/r/cbrgm/drone-hugo/tags/)
|
[![Docker Pulls](https://img.shields.io/docker/pulls/plugins/hugo.svg)](https://hub.docker.com/r/plugins/hugo/tags/)
|
||||||
|
|
||||||
**Automatically create static web page files using Hugo within your drone pipeline!**
|
**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`
|
- **Easy** to implement in your existing pipeline using `.drone.yml`
|
||||||
- **Small** 21mb image size
|
- **Small** 21mb image size
|
||||||
@ -18,7 +18,7 @@ The example below demonstrates how you can use the plugin to automatically creat
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
hugo:
|
hugo:
|
||||||
image: cbrgm/drone-hugo:0.40.2
|
image: plugins/hugo:0.40.2
|
||||||
validate: true
|
validate: true
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ You can customize the paths for e. g. the theme, layout, content directory and o
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
hugo:
|
hugo:
|
||||||
image: cbrgm/drone-hugo:0.40.2
|
image: plugins/hugo:0.40.2
|
||||||
+ config: path/to/config
|
+ config: path/to/config
|
||||||
+ content: path/to/content/
|
+ content: path/to/content/
|
||||||
+ layout: path/to/layout
|
+ 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
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
hugo:
|
hugo:
|
||||||
image: cbrgm/drone-hugo:0.40.2
|
image: plugins/hugo:0.40.2
|
||||||
config: path/to/config
|
config: path/to/config
|
||||||
content: path/to/content/
|
content: path/to/content/
|
||||||
output: path/to/public
|
output: path/to/public
|
||||||
source: path/to/source
|
source: path/to/source
|
||||||
theme: path/themes/THEMENAME/
|
theme: path/themes/THEMENAME/
|
||||||
+ url: https://cbrgm.de
|
+ url: https://example.com
|
||||||
validate: true
|
validate: true
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ You can set the `buildDrafts`, `buildExpired`, `buildFuture` settings to configu
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
hugo:
|
hugo:
|
||||||
image: cbrgm/drone-hugo:0.40.2
|
image: plugins/hugo:0.40.2
|
||||||
+ buildDrafts: true
|
+ buildDrafts: true
|
||||||
+ buildExpired: true
|
+ buildExpired: true
|
||||||
+ buildFuture: true
|
+ buildFuture: true
|
||||||
@ -78,7 +78,7 @@ pipeline:
|
|||||||
output: path/to/public
|
output: path/to/public
|
||||||
source: path/to/source
|
source: path/to/source
|
||||||
theme: path/themes/THEMENAME/
|
theme: path/themes/THEMENAME/
|
||||||
url: https://cbrgm.de
|
url: https://example.com
|
||||||
validate: true
|
validate: true
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -89,14 +89,14 @@ Here is a short example of how to define a pipeline that automatically generates
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: cbrgm/drone-hugo:0.40.2
|
image: plugins/hugo:0.40.2
|
||||||
output: site # Output path
|
output: site # Output path
|
||||||
validate: true
|
validate: true
|
||||||
when:
|
when:
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
publish:
|
publish:
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
host: cbrgm.de
|
host: example.com
|
||||||
username: webuser
|
username: webuser
|
||||||
password: xxxxxxx
|
password: xxxxxxx
|
||||||
port: 54321
|
port: 54321
|
||||||
@ -109,7 +109,7 @@ You can also use secrets to hide credentials:
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: cbrgm/drone-hugo:0.40.2
|
image: plugins/hugo:0.40.2
|
||||||
output: site # Output path
|
output: site # Output path
|
||||||
validate: true
|
validate: true
|
||||||
when:
|
when:
|
||||||
@ -117,7 +117,7 @@ pipeline:
|
|||||||
publish:
|
publish:
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
+ secrets: [ ssh_username, ssh_password ]
|
+ secrets: [ ssh_username, ssh_password ]
|
||||||
host: cbrgm.de
|
host: example.com
|
||||||
- username: webuser
|
- username: webuser
|
||||||
- password: xxxxxxx
|
- password: xxxxxxx
|
||||||
port: 54321
|
port: 54321
|
||||||
@ -142,7 +142,7 @@ docker run --rm \
|
|||||||
-e PLUGIN_VALIDATE=false \
|
-e PLUGIN_VALIDATE=false \
|
||||||
-v $(pwd):$(pwd) \
|
-v $(pwd):$(pwd) \
|
||||||
-w $(pwd) \
|
-w $(pwd) \
|
||||||
cbrgm/drone-hugo:latest
|
plugins/hugo:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameter Reference
|
## Parameter Reference
|
||||||
|
30
docs/tmpl.md
30
docs/tmpl.md
@ -1,11 +1,11 @@
|
|||||||
# cbrgm/drone-hugo
|
# 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<HUGO_VERSION>-ff69b4.svg)
|
[![GitHub release](https://img.shields.io/github/release/drone-plugins/drone-hugo.svg)](https://github.com/plugins/hugo/releases) ![](https://img.shields.io/badge/hugo%20version-v<HUGO_VERSION>-ff69b4.svg)
|
||||||
[![Docker Pulls](https://img.shields.io/docker/pulls/cbrgm/drone-hugo.svg)](https://hub.docker.com/r/cbrgm/drone-hugo/tags/)
|
[![Docker Pulls](https://img.shields.io/docker/pulls/plugins/hugo.svg)](https://hub.docker.com/r/plugins/hugo/tags/)
|
||||||
|
|
||||||
**Automatically create static web page files using Hugo within your drone pipeline!**
|
**Automatically create static web page files using Hugo within your drone pipeline!**
|
||||||
|
|
||||||
cbrgm/drone-hugo is:
|
plugins/hugo is:
|
||||||
|
|
||||||
- **Easy** to implement in your existing pipeline using `.drone.yml`
|
- **Easy** to implement in your existing pipeline using `.drone.yml`
|
||||||
- **Small** 21mb image size
|
- **Small** 21mb image size
|
||||||
@ -18,7 +18,7 @@ The example below demonstrates how you can use the plugin to automatically creat
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
hugo:
|
hugo:
|
||||||
image: cbrgm/drone-hugo:<HUGO_VERSION>
|
image: plugins/hugo:<HUGO_VERSION>
|
||||||
validate: true
|
validate: true
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ You can customize the paths for e. g. the theme, layout, content directory and o
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
hugo:
|
hugo:
|
||||||
image: cbrgm/drone-hugo:<HUGO_VERSION>
|
image: plugins/hugo:<HUGO_VERSION>
|
||||||
+ config: path/to/config
|
+ config: path/to/config
|
||||||
+ content: path/to/content/
|
+ content: path/to/content/
|
||||||
+ layout: path/to/layout
|
+ 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
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
hugo:
|
hugo:
|
||||||
image: cbrgm/drone-hugo:<HUGO_VERSION>
|
image: plugins/hugo:<HUGO_VERSION>
|
||||||
config: path/to/config
|
config: path/to/config
|
||||||
content: path/to/content/
|
content: path/to/content/
|
||||||
output: path/to/public
|
output: path/to/public
|
||||||
source: path/to/source
|
source: path/to/source
|
||||||
theme: path/themes/THEMENAME/
|
theme: path/themes/THEMENAME/
|
||||||
+ url: https://cbrgm.de
|
+ url: https://example.com
|
||||||
validate: true
|
validate: true
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ You can set the `buildDrafts`, `buildExpired`, `buildFuture` settings to configu
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
hugo:
|
hugo:
|
||||||
image: cbrgm/drone-hugo:<HUGO_VERSION>
|
image: plugins/hugo:<HUGO_VERSION>
|
||||||
+ buildDrafts: true
|
+ buildDrafts: true
|
||||||
+ buildExpired: true
|
+ buildExpired: true
|
||||||
+ buildFuture: true
|
+ buildFuture: true
|
||||||
@ -78,7 +78,7 @@ pipeline:
|
|||||||
output: path/to/public
|
output: path/to/public
|
||||||
source: path/to/source
|
source: path/to/source
|
||||||
theme: path/themes/THEMENAME/
|
theme: path/themes/THEMENAME/
|
||||||
url: https://cbrgm.de
|
url: https://example.com
|
||||||
validate: true
|
validate: true
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -89,14 +89,14 @@ Here is a short example of how to define a pipeline that automatically generates
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: cbrgm/drone-hugo:<HUGO_VERSION>
|
image: plugins/hugo:<HUGO_VERSION>
|
||||||
output: site # Output path
|
output: site # Output path
|
||||||
validate: true
|
validate: true
|
||||||
when:
|
when:
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
publish:
|
publish:
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
host: cbrgm.de
|
host: example.com
|
||||||
username: webuser
|
username: webuser
|
||||||
password: xxxxxxx
|
password: xxxxxxx
|
||||||
port: 54321
|
port: 54321
|
||||||
@ -109,7 +109,7 @@ You can also use secrets to hide credentials:
|
|||||||
```yml
|
```yml
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: cbrgm/drone-hugo:<HUGO_VERSION>
|
image: plugins/hugo:<HUGO_VERSION>
|
||||||
output: site # Output path
|
output: site # Output path
|
||||||
validate: true
|
validate: true
|
||||||
when:
|
when:
|
||||||
@ -117,7 +117,7 @@ pipeline:
|
|||||||
publish:
|
publish:
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
+ secrets: [ ssh_username, ssh_password ]
|
+ secrets: [ ssh_username, ssh_password ]
|
||||||
host: cbrgm.de
|
host: example.com
|
||||||
- username: webuser
|
- username: webuser
|
||||||
- password: xxxxxxx
|
- password: xxxxxxx
|
||||||
port: 54321
|
port: 54321
|
||||||
@ -142,7 +142,7 @@ docker run --rm \
|
|||||||
-e PLUGIN_VALIDATE=false \
|
-e PLUGIN_VALIDATE=false \
|
||||||
-v $(pwd):$(pwd) \
|
-v $(pwd):$(pwd) \
|
||||||
-w $(pwd) \
|
-w $(pwd) \
|
||||||
cbrgm/drone-hugo:latest
|
plugins/hugo:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Parameter Reference
|
## Parameter Reference
|
||||||
|
Loading…
Reference in New Issue
Block a user