Giter Club home page Giter Club logo

boilr-plugin's Introduction

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

boilr-plugin's People

Contributors

donny-dont avatar tboerger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.