Skip to content

leroy-merlin-br/boilr-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boilr-plugin

Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com

This is a boilr template for creating a plugin for Drone CI. Get started by installing the template:

$ boilr template download drone-plugins/boilr-plugin drone-plugin -f

Create a project in directory my-plugin:

$ boilr template use drone-plugin my-plugin

Select if the docker images should be built for Windows:

[?] Please choose a value for "UseWindows" [default: true]:

Enter the owner for DockerHub:

[?] Please choose a value for "DockerOwner" [default: "plugins"]:

Enter the repository for DockerHub:

[?] Please choose a value for "DockerRepo" [default: ""]: dockerhub

Enter the name of the plugin executable:

[?] Please choose a value for "Executable" [default: ""]: drone-dockerhub

Enter the git repository host:

[?] Please choose a value for "RepoHost" [default: "github.com"]:

Enter the git repository owner:

[?] Please choose a value for "RepoOwner" [default: "drone-plugins"]:

Enter the git repository name:

[?] Please choose a value for "RepoName" [default: ""]: drone-dockerhub

Enter the usage information of the app:

[?] Please choose a value for "AppUsage" [default: ""]: trigger builds on dockerhub

Select if the docker image should use a multiarch base image:

[?] Please choose a value for "UseMultiArch" [default: true]:

Enter the maintainer used within the Dockerfile:

[?] Please choose a value for "DockerMaintainer" [default: "Drone.IO Community <[email protected]>"]:

Enter the schema name used within the Dockerfile:

[?] Please choose a value for "DockerSchemaName" [default: ""]: Drone DockerHub

Enter the schema vendor used within the Dockerfile:

[?] Please choose a value for "DockerSchemaVendor" [default: ""]: Drone.IO Community

Example

▶ boilr template use drone-plugin /home/octocat/drone-curseforge -l debug
[✔] Created .dockerignore
[?] Please choose a value for "UseWindows" [default: true]:
[?] Please choose a value for "DockerOwner" [default: "plugins"]:
[?] Please choose a value for "DockerRepo" [default: ""]: curseforge
[?] Please choose a value for "Executable" [default: ""]: drone-curseforge
[✔] Created .drone.star
[✔] Created .gitignore
[✔] Created LICENSE
[?] Please choose a value for "RepoHost" [default: "github.com"]:
[?] Please choose a value for "RepoOwner" [default: "drone-plugins"]:
[?] Please choose a value for "RepoName" [default: ""]: drone-curseforge
[✔] Created cmd/drone-curseforge/config.go
[?] Please choose a value for "Usage" [default: ""]: publish files to curseforge
[✔] Created cmd/drone-curseforge/main.go
[?] Please choose a value for "UseMultiArch" [default: true]:
[?] Please choose a value for "DockerMaintainer" [default: "Drone.IO Community <[email protected]>"]:
[?] Please choose a value for "DockerSchemaName" [default: ""]: Drone CurseForge
[?] Please choose a value for "DockerSchemaVendor" [default: "Drone.IO Community"]:
[✔] Created docker/Dockerfile.linux.amd64
[✔] Created docker/Dockerfile.linux.arm
[✔] Created docker/Dockerfile.linux.arm64
[✔] Created docker/Dockerfile.windows.1809
[✔] Created docker/Dockerfile.windows.1903
[✔] Created docker/Dockerfile.windows.1909
[✔] Created docker/manifest.tmpl
[✔] Created go.mod
[✔] Created plugin/impl.go
[✔] Created plugin/impl_test.go
[✔] Created plugin/plugin.go
[✔] Created plugin/plugin_test.go
[✔] Successfully executed the project template drone-plugin in /home/octocat/drone-curseforge