Initial draft of plugin.
All checks were successful
All checks were successful
This commit is contained in:
parent
c5391b5a98
commit
da82c0f30a
16 changed files with 755 additions and 0 deletions
57
.woodpecker/build.yaml
Normal file
57
.woodpecker/build.yaml
Normal file
|
@ -0,0 +1,57 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: woodpecker/markdownlint
|
||||
event: [manual, push, pull_request]
|
||||
branch: main
|
||||
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
|
||||
steps:
|
||||
|
||||
build:
|
||||
image: kokuwaio/buildctl
|
||||
settings: &settings
|
||||
name: registry.kokuwa.io/kokuwaio/markdownlint:ci-${CI_PIPELINE_NUMBER}
|
||||
auth:
|
||||
registry.kokuwa.io:
|
||||
username: {from_secret: kokuwa_io_username}
|
||||
password: {from_secret: kokuwa_io_password}
|
||||
build-args: {NPM_CONFIG_REGISTRY: "${NPM_CONFIG_REGISTRY}"}
|
||||
platform: [linux/amd64, linux/arm64]
|
||||
annotation:
|
||||
org.opencontainers.image.title: Markdownlint WoodpeckerCI Plugin
|
||||
org.opencontainers.image.description: A WoodpeckerCI plugin for markdownlint-cli to lint markdown files.
|
||||
org.opencontainers.image.url: $CI_REPO_URL
|
||||
org.opencontainers.image.documentation: $CI_REPO_URL/README.md
|
||||
org.opencontainers.image.source: $CI_REPO_CLONE_URL
|
||||
org.opencontainers.image.revision: $CI_COMMIT_SHA
|
||||
org.opencontainers.image.vendor: kokuwa.io
|
||||
org.opencontainers.image.licenses: EUPL-1.2
|
||||
org.opencontainers.image.ref.name: kokuwaio/markdownlint
|
||||
org.opencontainers.image.version: 0.45.0
|
||||
when:
|
||||
event: pull_request
|
||||
|
||||
push:
|
||||
image: kokuwaio/buildctl
|
||||
settings:
|
||||
<<: *settings
|
||||
name:
|
||||
- registry.kokuwa.io/kokuwaio/markdownlint:latest
|
||||
- registry.kokuwa.io/kokuwaio/markdownlint:0.45.0
|
||||
- docker.io/kokuwaio/markdownlint:latest
|
||||
- docker.io/kokuwaio/markdownlint:0.45.0
|
||||
- ghcr.io/kokuwaio/markdownlint:latest
|
||||
- ghcr.io/kokuwaio/markdownlint:0.45.0
|
||||
auth:
|
||||
"https://index.docker.io/v1/":
|
||||
username: {from_secret: docker_io_username}
|
||||
password: {from_secret: docker_io_password}
|
||||
ghcr.io:
|
||||
username: {from_secret: ghcr_io_username}
|
||||
password: {from_secret: ghcr_io_password}
|
||||
registry.kokuwa.io:
|
||||
username: {from_secret: kokuwa_io_username}
|
||||
password: {from_secret: kokuwa_io_password}
|
||||
when:
|
||||
event: [manual, push]
|
||||
branch: main
|
17
.woodpecker/dockerhub.yaml
Normal file
17
.woodpecker/dockerhub.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: woodpecker/markdownlint
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
path: [.woodpecker/dockerhub.yaml, README.md]
|
||||
|
||||
steps:
|
||||
|
||||
metadata:
|
||||
image: kokuwaio/dockerhub-metadata
|
||||
settings:
|
||||
repository: kokuwaio/markdownlint
|
||||
description-short: A WoodpeckerCI plugin for markdownlint-cli to lint markdown files.
|
||||
categories: [developer-tools, integration-and-delivery]
|
||||
username: {from_secret: dockerhub_username}
|
||||
password: {from_secret: dockerhub_password}
|
31
.woodpecker/lint.yaml
Normal file
31
.woodpecker/lint.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
when:
|
||||
event: [manual, push, pull_request]
|
||||
branch: main
|
||||
path: [.woodpecker/lint.yaml, renovate.json, "**/*.yaml", "**/*.md", "**/*.sh", "**/Dockerfile"]
|
||||
|
||||
steps:
|
||||
|
||||
renovate:
|
||||
image: kokuwaio/renovate-config-validator
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker/lint.yaml, renovate.json]]
|
||||
|
||||
yaml:
|
||||
image: kokuwaio/yamllint
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker/lint.yaml, .yamllint.yaml, "**/*.yaml"]]
|
||||
|
||||
markdown:
|
||||
image: kokuwaio/markdownlint
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker/lint.yaml, .markdownlint.yaml, "**/*.md"]]
|
||||
|
||||
dockerfile:
|
||||
image: kokuwaio/hadolint
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker/lint.yaml, "**/Dockerfile"]]
|
||||
|
||||
shellcheck:
|
||||
image: kokuwaio/shellcheck
|
||||
depends_on: []
|
||||
when: [path: [.woodpecker/lint.yaml, "**/*.sh"]]
|
34
.woodpecker/test.yaml
Normal file
34
.woodpecker/test.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: woodpecker/markdownlint
|
||||
event: [manual, push, pull_request]
|
||||
branch: main
|
||||
path: [.woodpecker/build.yaml, Dockerfile, Dockerfile.dockerignore, entrypoint.sh]
|
||||
|
||||
depends_on: [build]
|
||||
matrix:
|
||||
PLATFORM: [amd64, arm64]
|
||||
labels:
|
||||
platform: linux/${PLATFORM}
|
||||
|
||||
steps:
|
||||
|
||||
pr:
|
||||
image: registry.kokuwa.io/kokuwaio/markdownlint:ci-${CI_PIPELINE_NUMBER}
|
||||
when:
|
||||
event: pull_request
|
||||
|
||||
kokuwa.io: &version
|
||||
image: registry.kokuwa.io/kokuwaio/markdownlint
|
||||
pull: true
|
||||
when:
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
|
||||
docker.io:
|
||||
image: docker.io/kokuwaio/markdownlint
|
||||
<<: *version
|
||||
|
||||
ghcr.io:
|
||||
image: ghcr.io/kokuwaio/markdownlint
|
||||
<<: *version
|
Loading…
Add table
Add a link
Reference in a new issue