hacdias / caddy-v1-plugin-test

🐬 Docker image to test the build of Caddy plugins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

caddy-v1-plugin-test

Docker image to test building Caddy V1 plugins on CI.

Requirements

  1. Plugin must be a module.
  2. The working directory must be the plugin root.
  3. 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

About

🐬 Docker image to test the build of Caddy plugins.

License:MIT License


Languages

Language:Shell 81.7%Language:Dockerfile 18.3%