Compare commits
179 Commits
Author | SHA1 | Date | |
---|---|---|---|
004310fee0 | |||
1336e5fff4 | |||
6b927f5398 | |||
bdd9ee590d | |||
1a8e7fae35 | |||
ac978938e5 | |||
4e8b5635f3 | |||
179239e366 | |||
c0e5eee624 | |||
13eb244b9a | |||
a76d193522 | |||
933742d589 | |||
621b72a332 | |||
09340e1072 | |||
06b678301a | |||
352e4158ff | |||
3046554fd4 | |||
9240fbc0b7 | |||
5fd558edf6 | |||
2a0f912852 | |||
bd36de0a85 | |||
4b2f79f5c9 | |||
e3c2857de0 | |||
cb267ee64d | |||
934268b25d | |||
ed7b7dbfe2 | |||
6f503506e6 | |||
21aba1672b | |||
ddf012d7b3 | |||
dce16e2627 | |||
669cfa4d9e | |||
f9d72c036d | |||
d27659c5a7 | |||
254e5e0055 | |||
99ac0cf928 | |||
a532cc531a | |||
2d3cf23a11 | |||
8a1ecef06d | |||
add5ee8cee | |||
26c015dd71 | |||
a2672250f3 | |||
f2fc2839e0 | |||
7c50da97ae | |||
4b49cefd07 | |||
6f8596a92e | |||
860b56f943 | |||
aa113c596a | |||
498f152720 | |||
4fe368e9d9 | |||
ae4f76850a | |||
57c718f6e1 | |||
df5e2905cc | |||
17e5b955a9 | |||
d5741d08e9 | |||
3c696d8ca2 | |||
b6677b7708 | |||
b57b6c6e5f | |||
0b7ae40f84 | |||
f400c89da9 | |||
b007ebd021 | |||
c4d4b2ca9e | |||
1708dafad4 | |||
39152109ac | |||
fd398bd166 | |||
1dcce7008a | |||
d291e2d770 | |||
c900c9904d | |||
8d16968dd3 | |||
6aba44b1a8 | |||
377cbf7cdc | |||
78ae331a14 | |||
1708f23abe | |||
e633ff3f1b | |||
d4453d4809 | |||
b14ec96efa | |||
b5b9e81de2 | |||
eb4b840e12 | |||
52db1dd2d7 | |||
098d588d50 | |||
24185675cf | |||
72bbacff68 | |||
ab39bd1eb3 | |||
21db34bdac | |||
00903de216 | |||
75a43a8fd1 | |||
746177de12 | |||
ef20d5e33d | |||
cc02386c0d | |||
c08a13ac7f | |||
7285853bf9 | |||
f555e9b751 | |||
1a79889f8e | |||
9babf1d6f7 | |||
98ed0fae59 | |||
297bbe11a9 | |||
616d302635 | |||
4fb5152f33 | |||
27ac91b67b | |||
8e48dd8dd6 | |||
6e443d247d | |||
b4eefd68e7 | |||
d994dafdb9 | |||
8280ce9872 | |||
3c646557c5 | |||
2f1de3e7ff | |||
8ca98d9ca2 | |||
cb1254b3bc | |||
3d298b5c55 | |||
fa2b2de028 | |||
959e818eeb | |||
2e39b9198b | |||
c367379f43 | |||
276767fbf2 | |||
30bd3f36b9 | |||
0119625b93 | |||
5d0ca266ae | |||
053c9f9f69 | |||
fe861e0cbf | |||
561f8075b2 | |||
53e20d8d4d | |||
9efd62de5e | |||
90e717cbf8 | |||
21250b564b | |||
16e5106104 | |||
2e76f12fad | |||
002a9523a8 | |||
b60fac56ea | |||
05f58027b1 | |||
805f314ddb | |||
f3a430512a | |||
fc735e1075 | |||
c3e46f76f3 | |||
fbd603191c | |||
1fe3ea0f03 | |||
e181f660e3 | |||
49f5ebbeed | |||
d449b0cf62 | |||
e0fe59f2cd | |||
3beb3c9609 | |||
503f59b2df | |||
02cc961198 | |||
f65aa1ed0d | |||
09230bdccf | |||
e02c4a57d0 | |||
a52eca29f3 | |||
61b9daa676 | |||
076b864bc0 | |||
3be9efc692 | |||
7bfd83b4b7 | |||
ee659fa21d | |||
2c1ed5eb74 | |||
66b36ee863 | |||
9107e0821c | |||
ae37e6d237 | |||
1d1bc5c1be | |||
c628067c73 | |||
5a5287cfe4 | |||
cea21102dd | |||
4505e51a6a | |||
442bc2a7b7 | |||
0d0396f81f | |||
4ede6f8f05 | |||
cb8e82b111 | |||
833011eddb | |||
0e16b5fe2e | |||
f12b32ef9d | |||
b539727679 | |||
b7c15959fc | |||
de516772be | |||
73980c8308 | |||
51a1eff505 | |||
bc707c62d8 | |||
3b7fee664a | |||
be78fdaa21 | |||
9f9febda93 | |||
f046f96998 | |||
8ee2216b3d | |||
63a15bd718 | |||
9ba26bd0c6 |
1
.dictionary
Normal file
1
.dictionary
Normal file
|
@ -0,0 +1 @@
|
||||||
|
markdownlint-cli
|
190
.drone.yml
190
.drone.yml
|
@ -1,190 +0,0 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: test
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: markdownlint
|
|
||||||
image: thegeeklab/markdownlint-cli
|
|
||||||
commands:
|
|
||||||
- markdownlint 'README.md'
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- refs/pull/**
|
|
||||||
- refs/tags/**
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: build-container
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: dryrun
|
|
||||||
image: plugins/docker:19
|
|
||||||
settings:
|
|
||||||
build_args:
|
|
||||||
- BUILD_VERSION=${DRONE_TAG%-*}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
dry_run: true
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/pull/**
|
|
||||||
|
|
||||||
- name: tags
|
|
||||||
image: thegeeklab/docker-autotag
|
|
||||||
environment:
|
|
||||||
DOCKER_AUTOTAG_FORCE_LATEST: True
|
|
||||||
DOCKER_AUTOTAG_IGNORE_PRERELEASE: True
|
|
||||||
DOCKER_AUTOTAG_OUTPUT_FILE: .tags
|
|
||||||
DOCKER_AUTOTAG_VERSION: ${DRONE_TAG}
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- refs/tags/**
|
|
||||||
depends_on:
|
|
||||||
- dryrun
|
|
||||||
|
|
||||||
- name: publish-dockerhub
|
|
||||||
image: plugins/docker:19
|
|
||||||
settings:
|
|
||||||
build_args:
|
|
||||||
- BUILD_VERSION=${DRONE_TAG%-*}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: thegeeklab/${DRONE_REPO_NAME}
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- refs/tags/**
|
|
||||||
depends_on:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
- name: publish-quay
|
|
||||||
image: plugins/docker:19
|
|
||||||
settings:
|
|
||||||
build_args:
|
|
||||||
- BUILD_VERSION=${DRONE_TAG%-*}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
password:
|
|
||||||
from_secret: quay_password
|
|
||||||
registry: quay.io
|
|
||||||
repo: quay.io/thegeeklab/${DRONE_REPO_NAME}
|
|
||||||
username:
|
|
||||||
from_secret: quay_username
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- refs/tags/**
|
|
||||||
depends_on:
|
|
||||||
- tags
|
|
||||||
|
|
||||||
- name: publish-gitea
|
|
||||||
image: plugins/gitea-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: gitea_token
|
|
||||||
base_url: https://gitea.rknet.org
|
|
||||||
note: CHANGELOG.md
|
|
||||||
overwrite: true
|
|
||||||
title: ${DRONE_TAG}
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/tags/**
|
|
||||||
depends_on:
|
|
||||||
- publish-dockerhub
|
|
||||||
- publish-quay
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- refs/pull/**
|
|
||||||
- refs/tags/**
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- test
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: notifications
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: pushrm-dockerhub
|
|
||||||
pull: always
|
|
||||||
image: chko/docker-pushrm:1
|
|
||||||
environment:
|
|
||||||
DOCKER_PASS:
|
|
||||||
from_secret: docker_password
|
|
||||||
DOCKER_USER:
|
|
||||||
from_secret: docker_username
|
|
||||||
PUSHRM_FILE: README.md
|
|
||||||
PUSHRM_SHORT: Custom image for markdownlint-cli
|
|
||||||
PUSHRM_TARGET: thegeeklab/${DRONE_REPO_NAME}
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
|
|
||||||
- name: pushrm-quay
|
|
||||||
pull: always
|
|
||||||
image: chko/docker-pushrm:1
|
|
||||||
environment:
|
|
||||||
APIKEY__QUAY_IO:
|
|
||||||
from_secret: quay_token
|
|
||||||
PUSHRM_FILE: README.md
|
|
||||||
PUSHRM_TARGET: quay.io/thegeeklab/${DRONE_REPO_NAME}
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
|
|
||||||
- name: matrix
|
|
||||||
image: plugins/matrix
|
|
||||||
settings:
|
|
||||||
homeserver:
|
|
||||||
from_secret: matrix_homeserver
|
|
||||||
password:
|
|
||||||
from_secret: matrix_password
|
|
||||||
roomid:
|
|
||||||
from_secret: matrix_roomid
|
|
||||||
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
|
|
||||||
username:
|
|
||||||
from_secret: matrix_username
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/main
|
|
||||||
- refs/tags/**
|
|
||||||
status:
|
|
||||||
- success
|
|
||||||
- failure
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build-container
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: signature
|
|
||||||
hmac: 3133f6df6170d71ee97040f9721a246b2417a104ba2f5d1b58add1683359b350
|
|
||||||
|
|
||||||
...
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CHANGELOG.md
|
47
.gitsv/config.yml
Normal file
47
.gitsv/config.yml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
---
|
||||||
|
version: "1.1"
|
||||||
|
|
||||||
|
versioning:
|
||||||
|
update-major: []
|
||||||
|
update-minor: [feat]
|
||||||
|
update-patch: [fix, perf, refactor, chore, test, ci, docs]
|
||||||
|
|
||||||
|
tag:
|
||||||
|
pattern: "v%d.%d.%d"
|
||||||
|
|
||||||
|
release-notes:
|
||||||
|
sections:
|
||||||
|
- name: Features
|
||||||
|
commit-types: [feat]
|
||||||
|
section-type: commits
|
||||||
|
- name: Bug Fixes
|
||||||
|
commit-types: [fix]
|
||||||
|
section-type: commits
|
||||||
|
- name: Performance Improvements
|
||||||
|
commit-types: [perf]
|
||||||
|
section-type: commits
|
||||||
|
- name: Code Refactoring
|
||||||
|
commit-types: [refactor]
|
||||||
|
section-type: commits
|
||||||
|
- name: Others
|
||||||
|
commit-types: [chore]
|
||||||
|
section-type: commits
|
||||||
|
- name: Testing
|
||||||
|
commit-types: [test]
|
||||||
|
section-type: commits
|
||||||
|
- name: CI Pipeline
|
||||||
|
commit-types: [ci]
|
||||||
|
section-type: commits
|
||||||
|
- name: Documentation
|
||||||
|
commit-types: [docs]
|
||||||
|
section-type: commits
|
||||||
|
- name: BREAKING CHANGES
|
||||||
|
section-type: breaking-changes
|
||||||
|
|
||||||
|
commit-message:
|
||||||
|
footer:
|
||||||
|
issue:
|
||||||
|
key: issue
|
||||||
|
add-value-prefix: "#"
|
||||||
|
issue:
|
||||||
|
regex: "#?[0-9]+"
|
|
@ -1 +1,2 @@
|
||||||
.drone.yml
|
*.tpl.md
|
||||||
|
LICENSE
|
||||||
|
|
69
.woodpecker/build-container.yml
Normal file
69
.woodpecker/build-container.yml
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
---
|
||||||
|
when:
|
||||||
|
- event: [pull_request, tag]
|
||||||
|
- event: [push, manual]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: security-build
|
||||||
|
image: quay.io/thegeeklab/wp-docker-buildx:4
|
||||||
|
settings:
|
||||||
|
containerfile: Containerfile.multiarch
|
||||||
|
output: type=oci,dest=oci/${CI_REPO_NAME},tar=false
|
||||||
|
repo: thegeeklab/${CI_REPO_NAME}
|
||||||
|
|
||||||
|
- name: security-scan
|
||||||
|
image: ghcr.io/aquasecurity/trivy
|
||||||
|
commands:
|
||||||
|
- trivy -v
|
||||||
|
- trivy image --input oci/${CI_REPO_NAME}
|
||||||
|
environment:
|
||||||
|
TRIVY_EXIT_CODE: "1"
|
||||||
|
TRIVY_IGNORE_UNFIXED: "true"
|
||||||
|
TRIVY_NO_PROGRESS: "true"
|
||||||
|
TRIVY_SEVERITY: HIGH,CRITICAL
|
||||||
|
TRIVY_TIMEOUT: 1m
|
||||||
|
|
||||||
|
- name: publish-dockerhub
|
||||||
|
image: quay.io/thegeeklab/wp-docker-buildx:4
|
||||||
|
group: container
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
containerfile: Containerfile.multiarch
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
platforms:
|
||||||
|
- linux/amd64
|
||||||
|
- linux/arm64
|
||||||
|
provenance: false
|
||||||
|
repo: thegeeklab/${CI_REPO_NAME}
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
when:
|
||||||
|
- event: [tag]
|
||||||
|
- event: [push, manual]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
- name: publish-quay
|
||||||
|
image: quay.io/thegeeklab/wp-docker-buildx:4
|
||||||
|
group: container
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
containerfile: Containerfile.multiarch
|
||||||
|
password:
|
||||||
|
from_secret: quay_password
|
||||||
|
platforms:
|
||||||
|
- linux/amd64
|
||||||
|
- linux/arm64
|
||||||
|
provenance: false
|
||||||
|
registry: quay.io
|
||||||
|
repo: quay.io/thegeeklab/${CI_REPO_NAME}
|
||||||
|
username:
|
||||||
|
from_secret: quay_username
|
||||||
|
when:
|
||||||
|
- event: [tag]
|
||||||
|
- event: [push, manual]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
25
.woodpecker/build-package.yml
Normal file
25
.woodpecker/build-package.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
when:
|
||||||
|
- event: [pull_request, tag]
|
||||||
|
- event: [push, manual]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: changelog
|
||||||
|
image: quay.io/thegeeklab/git-sv
|
||||||
|
commands:
|
||||||
|
- git sv current-version
|
||||||
|
- git sv release-notes -t ${CI_COMMIT_TAG:-next} -o CHANGELOG.md
|
||||||
|
- cat CHANGELOG.md
|
||||||
|
|
||||||
|
- name: publish-gitea
|
||||||
|
image: quay.io/thegeeklab/wp-gitea-release
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
base_url: https://gitea.rknet.org
|
||||||
|
note: CHANGELOG.md
|
||||||
|
title: ${CI_COMMIT_TAG}
|
||||||
|
when:
|
||||||
|
- event: [tag]
|
62
.woodpecker/docs.yml
Normal file
62
.woodpecker/docs.yml
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
---
|
||||||
|
when:
|
||||||
|
- event: [pull_request, tag]
|
||||||
|
- event: [push, manual]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: markdownlint
|
||||||
|
image: quay.io/thegeeklab/markdownlint-cli
|
||||||
|
group: test
|
||||||
|
commands:
|
||||||
|
- markdownlint 'README.md'
|
||||||
|
|
||||||
|
- name: spellcheck
|
||||||
|
image: quay.io/thegeeklab/alpine-tools
|
||||||
|
group: test
|
||||||
|
commands:
|
||||||
|
- spellchecker --files '_docs/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls
|
||||||
|
environment:
|
||||||
|
FORCE_COLOR: "true"
|
||||||
|
|
||||||
|
- name: link-validation
|
||||||
|
image: docker.io/lycheeverse/lychee
|
||||||
|
group: test
|
||||||
|
commands:
|
||||||
|
- lychee --no-progress --format detailed README.md
|
||||||
|
|
||||||
|
- name: pushrm-dockerhub
|
||||||
|
image: docker.io/chko/docker-pushrm:1
|
||||||
|
secrets:
|
||||||
|
- source: docker_password
|
||||||
|
target: DOCKER_PASS
|
||||||
|
- source: docker_username
|
||||||
|
target: DOCKER_USER
|
||||||
|
environment:
|
||||||
|
PUSHRM_FILE: README.md
|
||||||
|
PUSHRM_SHORT: Custom image for markdownlint-cli
|
||||||
|
PUSHRM_TARGET: thegeeklab/${CI_REPO_NAME}
|
||||||
|
when:
|
||||||
|
- event: [push, manual]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
- name: pushrm-quay
|
||||||
|
image: docker.io/chko/docker-pushrm:1
|
||||||
|
secrets:
|
||||||
|
- source: quay_token
|
||||||
|
target: APIKEY__QUAY_IO
|
||||||
|
environment:
|
||||||
|
PUSHRM_FILE: README.md
|
||||||
|
PUSHRM_TARGET: quay.io/thegeeklab/${CI_REPO_NAME}
|
||||||
|
when:
|
||||||
|
- event: [push, manual]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
status: [success]
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build-package
|
||||||
|
- build-container
|
26
.woodpecker/notify.yml
Normal file
26
.woodpecker/notify.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
when:
|
||||||
|
- event: [tag]
|
||||||
|
- event: [push, manual]
|
||||||
|
branch:
|
||||||
|
- ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
|
runs_on: [success, failure]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: matrix
|
||||||
|
image: quay.io/thegeeklab/wp-matrix
|
||||||
|
settings:
|
||||||
|
homeserver:
|
||||||
|
from_secret: matrix_homeserver
|
||||||
|
password:
|
||||||
|
from_secret: matrix_password
|
||||||
|
roomid:
|
||||||
|
from_secret: matrix_roomid
|
||||||
|
username:
|
||||||
|
from_secret: matrix_username
|
||||||
|
when:
|
||||||
|
- status: [success, failure]
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- docs
|
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -1,11 +0,0 @@
|
||||||
# Changelog
|
|
||||||
|
|
||||||
## v0.26.0-3 (2020-12-31)
|
|
||||||
|
|
||||||
### Others
|
|
||||||
|
|
||||||
- **deps**: update node:lts-alpine3.12 docker digest to db383f8
|
|
||||||
- **docker**: switch to node:lts-alpine base image
|
|
||||||
- **deps**: pin node docker tag
|
|
||||||
- replace master by main as default branch
|
|
||||||
- use renovate preset config
|
|
|
@ -1,22 +1,24 @@
|
||||||
FROM node:lts-alpine3.12@sha256:db383f8332e0d50467ce9b9ca0b462dcb413d9c99abf18c15e29d4b584ba8996
|
FROM docker.io/node:lts-alpine@sha256:66c7d989b6dabba6b4305b88f40912679aebd9f387a5b16ffa76dfb9ae90b060
|
||||||
|
|
||||||
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
||||||
LABEL org.opencontainers.image.title="markdownlint-cli"
|
LABEL org.opencontainers.image.title="markdownlint-cli"
|
||||||
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/markdownlint-cli"
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/container/markdownlint-cli"
|
||||||
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/markdownlint-cli"
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/markdownlint-cli"
|
||||||
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/markdownlint-cli"
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/markdownlint-cli"
|
||||||
|
|
||||||
|
ARG MARKDOWNLINT_VERSION
|
||||||
|
|
||||||
ARG BUILD_VERSION
|
|
||||||
# renovate: datasource=npm depName=markdownlint-cli
|
# renovate: datasource=npm depName=markdownlint-cli
|
||||||
ENV MARKDOWNLINT_VERSION="${BUILD_VERSION:-0.26.0}"
|
ENV MARKDOWNLINT_VERSION="${MARKDOWNLINT_VERSION:-0.41.0}"
|
||||||
|
|
||||||
ENV FORCE_COLOR=true \
|
ENV FORCE_COLOR=true \
|
||||||
NPM_CONFIG_LOGLEVEL=error
|
NPM_CONFIG_LOGLEVEL=error
|
||||||
|
|
||||||
COPY overlay/ /
|
COPY overlay/ /
|
||||||
|
|
||||||
RUN MARKDOWNLINT_VERSION="${MARKDOWNLINT_VERSION##v}" && \
|
RUN apk --no-cache upgrade libcrypto3 libssl3 && \
|
||||||
|
MARKDOWNLINT_VERSION="${MARKDOWNLINT_VERSION##v}" && \
|
||||||
MARKDOWNLINT_MAJOR="${MARKDOWNLINT_VERSION%%.*}" && \
|
MARKDOWNLINT_MAJOR="${MARKDOWNLINT_VERSION%%.*}" && \
|
||||||
if [ -z "${MARKDOWNLINT_MAJOR//[0-9]}" ] && [ -n "$MARKDOWNLINT_MAJOR" ]; then \
|
if [ -z "${MARKDOWNLINT_MAJOR//[0-9]}" ] && [ -n "$MARKDOWNLINT_MAJOR" ]; then \
|
||||||
echo "Installing markdownlint-cli version '$MARKDOWNLINT_VERSION' ..." && \
|
echo "Installing markdownlint-cli version '$MARKDOWNLINT_VERSION' ..." && \
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2022 Robert Kaussow <mail@thegeeklab.de>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice (including the next
|
||||||
|
paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
|
||||||
|
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
||||||
|
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
README.md
18
README.md
|
@ -2,21 +2,25 @@
|
||||||
|
|
||||||
Custom image for markdownlint-cli
|
Custom image for markdownlint-cli
|
||||||
|
|
||||||
[![Build Status](https://img.shields.io/drone/build/docker/markdownlint-cli?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/docker/markdownlint-cli)
|
<!-- spellchecker-disable -->
|
||||||
|
|
||||||
|
[![Build Status](https://ci.rknet.org/api/badges/container/markdownlint-cli/status.svg)](https://ci.rknet.org/repos/container/markdownlint-cli)
|
||||||
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/markdownlint-cli)
|
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/markdownlint-cli)
|
||||||
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/markdownlint-cli)
|
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/markdownlint-cli)
|
||||||
[![Source: Gitea](https://img.shields.io/badge/source-gitea-blue.svg?logo=gitea&logoColor=white)](https://gitea.rknet.org/docker/markdownlint-cli)
|
[![Source: Gitea](https://img.shields.io/badge/source-gitea-blue.svg?logo=gitea&logoColor=white)](https://gitea.rknet.org/container/markdownlint-cli)
|
||||||
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/docker/markdownlint-cli/src/branch/main/LICENSE)
|
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/container/markdownlint-cli/src/branch/main/LICENSE)
|
||||||
|
|
||||||
Custom wrapper Docker image for [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) optimized for CI.
|
<!-- spellchecker-enable -->
|
||||||
|
|
||||||
|
Custom container image for [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) optimized for CI.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```Shell
|
```Shell
|
||||||
docker run -v $(pwd):/drone/src markdownlint-cli
|
docker run -v $(pwd):/src markdownlint-cli
|
||||||
|
|
||||||
# or pass arguments to markdownlint-cli
|
# or pass arguments to markdownlint-cli
|
||||||
docker run -v $(pwd):/drone/src markdownlint-cli -p .gitignore
|
docker run -v $(pwd):/src markdownlint-cli -p .gitignore
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
@ -27,4 +31,4 @@ docker build -t markdownlint-cli:latest .
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the MIT License - see the [LICENSE](https://gitea.rknet.org/docker/markdownlint-cli/src/branch/main/LICENSE) file for details.
|
This project is licensed under the MIT License - see the [LICENSE](https://gitea.rknet.org/container/markdownlint-cli/src/branch/main/LICENSE) file for details.
|
||||||
|
|
4
trivy.yaml
Normal file
4
trivy.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
scan:
|
||||||
|
skip-files:
|
||||||
|
- /usr/local/bin/gomplate
|
Loading…
Reference in New Issue
Block a user