caddy-v1-plugin-test
Docker image to test building Caddy V1 plugins on CI.
Requirements
- Plugin must be a module.
- The working directory must be the plugin root.
- The plugin must not have a folder named
caddy
.
Usage
Here's an example for Circle CI, where it first lints using golangci-lint and then builds the plugin with Caddy:
version: 2
jobs:
lint:
docker:
- image: golangci/golangci-lint:v1.16
steps:
- checkout
- run: golangci-lint run -v
build:
docker:
- image: hacdias/caddy-plugin-test:latest
steps:
- checkout
- run: caddy-build
workflows:
version: 2
build-workflow:
jobs:
- lint
- build
License
MIT © Henrique Dias