You've already forked markdownlint-docker
Compare commits
167 Commits
Author | SHA1 | Date | |
---|---|---|---|
7a88653b85
|
|||
a7663c7038
|
|||
f142f0e5ef
|
|||
5627e4f74e
|
|||
f2f3f765a6
|
|||
43163a7964
|
|||
893fc551e2
|
|||
298a3097e7
|
|||
96fc0601a2
|
|||
04be833f01
|
|||
d2de584110
|
|||
799246e723
|
|||
2e1129b153
|
|||
2ff5a3a885
|
|||
31f932cd16
|
|||
aa3429be16
|
|||
33cf769b65
|
|||
c2798aa53d
|
|||
af94c23490
|
|||
0bcf17723a
|
|||
0a6b3270ae
|
|||
f63f5bcd58
|
|||
db231d8039
|
|||
ce17b2c90e
|
|||
7166d5334c
|
|||
b186d0379f
|
|||
5de23c370f
|
|||
578421ec7a
|
|||
3431c5c56e
|
|||
5b01c18404
|
|||
f6a23f8aad
|
|||
f622fa4309
|
|||
ea289ba1a4
|
|||
e51678d14d
|
|||
9a0d322068
|
|||
85232f35ec
|
|||
9a98acc3f8
|
|||
fbe4485390
|
|||
cee3448ba9
|
|||
7e94d45e3e
|
|||
6d6b262aff
|
|||
5ea24f8ac1
|
|||
a45c7b0226
|
|||
69ff8882bf
|
|||
c93b9e2a98
|
|||
1d7938764c
|
|||
cc9d82caf5
|
|||
6ee4867729
|
|||
ef07b0d1e2
|
|||
fe15de5018
|
|||
63acec5e20
|
|||
1a1c00096f
|
|||
9c64c15a0b
|
|||
985b45b270
|
|||
ed67739374
|
|||
3389167379
|
|||
ab88395fa3 | |||
973f792000
|
|||
2c86022e29
|
|||
19858289a2
|
|||
29a2f48ab3
|
|||
7bf19bfc3f
|
|||
344af3a57c
|
|||
2c7ee3bf89
|
|||
6409a633b9
|
|||
8f4c5dd5a2
|
|||
294db6711f
|
|||
65e4781c7f | |||
0525491204
|
|||
745576228d
|
|||
5a39422556
|
|||
b61ce0b251
|
|||
d52001ea39
|
|||
ccecffb7a6
|
|||
3a19e75b1a
|
|||
a1b8691442
|
|||
8376c88cb8
|
|||
aa2ebc733a
|
|||
bcdfecae15
|
|||
8270972414
|
|||
aa28fab730 | |||
8dfe85b81e | |||
9182c584ac | |||
5b87c43174 | |||
b184cf6a18 | |||
2f8c2fca87 | |||
9a0d1335c2
|
|||
3e3d746ec4 | |||
07fc2cf729 | |||
70cbadba19 | |||
503405a95a | |||
70dcb7fd0e | |||
f320edda8c | |||
cb7cdf5f44 | |||
f8e2bfcafd | |||
230476364d | |||
834c4ee1ae | |||
252979c667
|
|||
8667affd41
|
|||
533c9829b3 | |||
ee3bf1b33b | |||
ffe97a3de9
|
|||
cfc54e9f3c
|
|||
39619bba92 | |||
abd9fcec28 | |||
ea23fa16d8
|
|||
0f0c9c3681 | |||
0e360e96c7 | |||
c1d1f1d729 | |||
9259302166 | |||
8d8d18e583
|
|||
8c151e4a9f | |||
807cc76904
|
|||
40cf201e55
|
|||
decd824748
|
|||
1261bd2077
|
|||
e93c4a7b77 | |||
389fe5e76e | |||
6cbf662b91 | |||
1b36727eb9 | |||
e6435bfa1e
|
|||
a60d5b32fe
|
|||
3b6d36d06d | |||
43025883e1 | |||
01eb154d4a
|
|||
f453a2b92b | |||
83c137e24f | |||
3f6e9136ed
|
|||
fdc5b39f6a
|
|||
be0df123a8 | |||
bf55a651a1
|
|||
f199db68d3 | |||
5b1adb7440
|
|||
f672c8fb13 | |||
709eda51ef | |||
91fc78e658 | |||
556a2e2006 | |||
04b1345a71
|
|||
a5446ba303
|
|||
df22dc8219 | |||
251fe34445 | |||
f3aeb335e7 | |||
d2730585a3
|
|||
595e325c43 | |||
770dc74913
|
|||
4eff9bdbb0
|
|||
67364ffee2
|
|||
8c92b356b3
|
|||
29d1ea0ff2
|
|||
0c87bbe6eb
|
|||
16fc320a9e
|
|||
126140c94c
|
|||
67a902acaf
|
|||
76a6abc21d
|
|||
b56d837ef2 | |||
1356b5b048 | |||
bd50e4f7b2
|
|||
6037be6651
|
|||
42588b3de7
|
|||
4c8744948a | |||
ec2286d332
|
|||
c3fff14a26
|
|||
d928487512
|
|||
b5c1b3ef83
|
|||
edfdbfb08c | |||
e13c51ed5a
|
|||
3eb3c59ae1
|
404
.drone.yml
404
.drone.yml
@ -1,404 +0,0 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: linter
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: markdown lint
|
||||
commands:
|
||||
- markdownlint *.md
|
||||
image: docker.io/volkerraschek/markdownlint:0.28.1
|
||||
resources:
|
||||
limits:
|
||||
cpu: 50
|
||||
memory: 50M
|
||||
|
||||
- name: email-notification
|
||||
environment:
|
||||
PLUGIN_HOST:
|
||||
from_secret: smtp_host
|
||||
PLUGIN_USERNAME:
|
||||
from_secret: smtp_username
|
||||
PLUGIN_PASSWORD:
|
||||
from_secret: smtp_password
|
||||
PLUGIN_FROM:
|
||||
from_secret: smtp_mail_address
|
||||
image: docker.io/drillster/drone-email:latest
|
||||
resources:
|
||||
limits:
|
||||
cpu: 50
|
||||
memory: 25M
|
||||
when:
|
||||
status:
|
||||
- changed
|
||||
- failure
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: latest-amd64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: false
|
||||
tags: latest-amd64
|
||||
repo: volkerraschek/markdownlint
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
no_cache: true
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
environment:
|
||||
PLUGIN_HOST:
|
||||
from_secret: smtp_host
|
||||
PLUGIN_USERNAME:
|
||||
from_secret: smtp_username
|
||||
PLUGIN_PASSWORD:
|
||||
from_secret: smtp_password
|
||||
PLUGIN_FROM:
|
||||
from_secret: smtp_mail_address
|
||||
when:
|
||||
status:
|
||||
- changed
|
||||
- failure
|
||||
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: latest-armv7
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: false
|
||||
tags: latest-armv7
|
||||
repo: volkerraschek/markdownlint
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
no_cache: true
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
environment:
|
||||
PLUGIN_HOST:
|
||||
from_secret: smtp_host
|
||||
PLUGIN_USERNAME:
|
||||
from_secret: smtp_username
|
||||
PLUGIN_PASSWORD:
|
||||
from_secret: smtp_password
|
||||
PLUGIN_FROM:
|
||||
from_secret: smtp_mail_address
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
when:
|
||||
status:
|
||||
- changed
|
||||
- failure
|
||||
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: latest-manifest
|
||||
|
||||
steps:
|
||||
- name: build-manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
auto_tag: false
|
||||
ignore_missing: true
|
||||
spec: manifest.tmpl
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
|
||||
- name: notify
|
||||
image: docker.io/drillster/drone-email:latest
|
||||
environment:
|
||||
PLUGIN_HOST:
|
||||
from_secret: smtp_host
|
||||
PLUGIN_USERNAME:
|
||||
from_secret: smtp_username
|
||||
PLUGIN_PASSWORD:
|
||||
from_secret: smtp_password
|
||||
PLUGIN_FROM:
|
||||
from_secret: smtp_mail_address
|
||||
resources:
|
||||
limits:
|
||||
cpu: 50
|
||||
memory: 25M
|
||||
when:
|
||||
status:
|
||||
- changed
|
||||
- failure
|
||||
|
||||
depends_on:
|
||||
- latest-amd64
|
||||
- latest-armv7
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: tagged-amd64
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: true
|
||||
auto_tag_suffix: amd64
|
||||
repo: volkerraschek/markdownlint
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
build_args:
|
||||
- MARKDOWNLINT_VERSION=${DRONE_TAG}
|
||||
no_cache: true
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
environment:
|
||||
PLUGIN_HOST:
|
||||
from_secret: smtp_host
|
||||
PLUGIN_USERNAME:
|
||||
from_secret: smtp_username
|
||||
PLUGIN_PASSWORD:
|
||||
from_secret: smtp_password
|
||||
PLUGIN_FROM:
|
||||
from_secret: smtp_mail_address
|
||||
when:
|
||||
status:
|
||||
- changed
|
||||
- failure
|
||||
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
repo:
|
||||
- volker.raschek/markdownlint-docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: tagged-armv7
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: true
|
||||
auto_tag_suffix: armv7
|
||||
repo: volkerraschek/markdownlint
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
build_args:
|
||||
- MARKDOWNLINT_VERSION=${DRONE_TAG}
|
||||
no_cache: true
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
environment:
|
||||
PLUGIN_HOST:
|
||||
from_secret: smtp_host
|
||||
PLUGIN_USERNAME:
|
||||
from_secret: smtp_username
|
||||
PLUGIN_PASSWORD:
|
||||
from_secret: smtp_password
|
||||
PLUGIN_FROM:
|
||||
from_secret: smtp_mail_address
|
||||
when:
|
||||
status:
|
||||
- changed
|
||||
- failure
|
||||
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
repo:
|
||||
- volker.raschek/markdownlint-docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: tagged-manifest
|
||||
|
||||
steps:
|
||||
- name: build-manifest
|
||||
image: plugins/manifest
|
||||
settings:
|
||||
auto_tag: true
|
||||
ignore_missing: true
|
||||
spec: manifest.tmpl
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
|
||||
- name: notify
|
||||
image: docker.io/drillster/drone-email:latest
|
||||
environment:
|
||||
PLUGIN_HOST:
|
||||
from_secret: smtp_host
|
||||
PLUGIN_USERNAME:
|
||||
from_secret: smtp_username
|
||||
PLUGIN_PASSWORD:
|
||||
from_secret: smtp_password
|
||||
PLUGIN_FROM:
|
||||
from_secret: smtp_mail_address
|
||||
resources:
|
||||
limits:
|
||||
cpu: 50
|
||||
memory: 25M
|
||||
when:
|
||||
status:
|
||||
- changed
|
||||
- failure
|
||||
|
||||
depends_on:
|
||||
- tagged-amd64
|
||||
- tagged-armv7
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
repo:
|
||||
- volker.raschek/markdownlint-docker
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: sync
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: github
|
||||
image: docker.io/appleboy/drone-git-push:latest
|
||||
resources:
|
||||
limits:
|
||||
cpu: 50
|
||||
memory: 25M
|
||||
settings:
|
||||
branch: master
|
||||
remote: ssh://git@github.com/volker-raschek/markdownlint-docker.git
|
||||
force: true
|
||||
ssh_key:
|
||||
from_secret: ssh_key
|
||||
|
||||
- name: email-notification
|
||||
environment:
|
||||
PLUGIN_HOST:
|
||||
from_secret: smtp_host
|
||||
PLUGIN_USERNAME:
|
||||
from_secret: smtp_username
|
||||
PLUGIN_PASSWORD:
|
||||
from_secret: smtp_password
|
||||
PLUGIN_FROM:
|
||||
from_secret: smtp_mail_address
|
||||
image: docker.io/drillster/drone-email:latest
|
||||
resources:
|
||||
limits:
|
||||
cpu: 50
|
||||
memory: 25M
|
||||
when:
|
||||
status:
|
||||
- changed
|
||||
- failure
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
repo:
|
||||
- volker.raschek/markdownlint-docker
|
49
.gitea/workflows/build.yaml
Normal file
49
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,49 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
build-arm64:
|
||||
runs-on: ubuntu-latest-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: docker/setup-buildx-action@v3.11.1
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
TAG=latest
|
||||
|
||||
docker buildx build \
|
||||
--platform linux/arm64 \
|
||||
--file Dockerfile \
|
||||
--provenance false \
|
||||
--tag git.cryptic.systems/volker.raschek/markdownlint:${TAG}-arm64 \
|
||||
.
|
||||
|
||||
build-amd64:
|
||||
runs-on: ubuntu-latest-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: docker/setup-buildx-action@v3.11.1
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
TAG=latest
|
||||
|
||||
docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--file Dockerfile \
|
||||
--provenance false \
|
||||
--tag git.cryptic.systems/volker.raschek/markdownlint:${TAG}-amd64 \
|
||||
.
|
22
.gitea/workflows/markdown-linters.yaml
Normal file
22
.gitea/workflows/markdown-linters.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
name: 'Lint Markdown files'
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
markdown-lint:
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
|
||||
with:
|
||||
globs: '**/*.md'
|
101
.gitea/workflows/release.yaml
Normal file
101
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,101 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "**"
|
||||
|
||||
jobs:
|
||||
push-arm64:
|
||||
runs-on: ubuntu-latest-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: docker/setup-buildx-action@v3.11.1
|
||||
|
||||
- uses: docker/login-action@v3.4.0
|
||||
with:
|
||||
registry: git.cryptic.systems
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push image
|
||||
run: |
|
||||
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
|
||||
|
||||
docker buildx build \
|
||||
--build-arg MARKDOWNLINT_VERSION=${{ github.ref_name }} \
|
||||
--file Dockerfile \
|
||||
--platform linux/arm64 \
|
||||
--provenance false \
|
||||
--push \
|
||||
--tag git.cryptic.systems/volker.raschek/markdownlint:${TAG}-arm64 \
|
||||
.
|
||||
|
||||
push-amd64:
|
||||
runs-on: ubuntu-latest-amd64
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: docker/setup-qemu-action@v3.6.0
|
||||
- uses: docker/setup-buildx-action@v3.11.1
|
||||
|
||||
- uses: docker/login-action@v3.4.0
|
||||
with:
|
||||
registry: git.cryptic.systems
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push image
|
||||
run: |
|
||||
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
|
||||
|
||||
docker buildx build \
|
||||
--build-arg MARKDOWNLINT_VERSION=${{ github.ref_name }} \
|
||||
--file Dockerfile \
|
||||
--platform linux/amd64 \
|
||||
--provenance false \
|
||||
--push \
|
||||
--tag git.cryptic.systems/volker.raschek/markdownlint:${TAG}-amd64 \
|
||||
.
|
||||
|
||||
push-manifest:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- push-arm64
|
||||
- push-amd64
|
||||
steps:
|
||||
- uses: docker/login-action@v3.4.0
|
||||
with:
|
||||
registry: git.cryptic.systems
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||
|
||||
- name: Create and push manifest
|
||||
run: |
|
||||
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
|
||||
|
||||
docker manifest create git.cryptic.systems/volker.raschek/markdownlint:${TAG} \
|
||||
--amend git.cryptic.systems/volker.raschek/markdownlint:${TAG}-amd64 \
|
||||
--amend git.cryptic.systems/volker.raschek/markdownlint:${TAG}-arm64
|
||||
|
||||
docker manifest push git.cryptic.systems/volker.raschek/markdownlint:${TAG}
|
||||
|
||||
sync-to-hub-docker-io:
|
||||
needs:
|
||||
- push-manifest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Copy images to docker.io
|
||||
run: |
|
||||
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
|
||||
|
||||
apt-get update --yes
|
||||
apt-get install --yes skopeo
|
||||
skopeo copy \
|
||||
--all \
|
||||
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
|
||||
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
|
||||
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
|
||||
--src-username volker.raschek \
|
||||
docker://git.cryptic.systems/volker.raschek/markdownlint:${TAG} \
|
||||
docker://docker.io/volkerraschek/markdownlint:${TAG}
|
22
.gitea/workflows/update-docker-hub-description.yaml
Normal file
22
.gitea/workflows/update-docker-hub-description.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
name: Update Docker Hub Description
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- README.md
|
||||
workflow_dispatch: {}
|
||||
|
||||
jobs:
|
||||
update-description-on-hub-docker-io:
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: peter-evans/dockerhub-description@v4.0.2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_IO_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_IO_PASSWORD }}
|
||||
repository: volkerraschek/markdownlint
|
||||
readme-filepath: README.md
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
# IntelliJ
|
||||
.idea/
|
||||
sync.sh
|
@ -45,19 +45,17 @@ MD012:
|
||||
# MD013/line-length - Line length
|
||||
MD013:
|
||||
# Number of characters
|
||||
line_length: 80
|
||||
line_length: 120
|
||||
# Number of characters for headings
|
||||
heading_line_length: 80
|
||||
heading_line_length: 120
|
||||
# Number of characters for code blocks
|
||||
code_block_line_length: 80
|
||||
code_block_line_length: 120
|
||||
# Include code blocks
|
||||
code_blocks: false
|
||||
# Include tables
|
||||
tables: false
|
||||
# Include headings
|
||||
headings: true
|
||||
# Include headings
|
||||
headers: true
|
||||
# Strict length checking
|
||||
strict: false
|
||||
# Stern length checking
|
||||
@ -70,11 +68,6 @@ MD022:
|
||||
# Blank lines below heading
|
||||
lines_below: 1
|
||||
|
||||
# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content
|
||||
MD024:
|
||||
# Only check sibling headings
|
||||
allow_different_nesting: true
|
||||
|
||||
# MD025/single-title/single-h1 - Multiple top-level headings in the same document
|
||||
MD025:
|
||||
# Heading level
|
||||
@ -128,8 +121,7 @@ MD041:
|
||||
# MD044/proper-names - Proper names should have the correct capitalization
|
||||
MD044:
|
||||
# List of proper names
|
||||
names:
|
||||
- network-tools
|
||||
names: []
|
||||
# Include code blocks
|
||||
code_blocks: false
|
||||
|
||||
@ -141,4 +133,4 @@ MD046:
|
||||
# MD048/code-fence-style - Code fence style
|
||||
MD048:
|
||||
# Code fence syle
|
||||
style: "backtick"
|
||||
style: "backtick"
|
||||
|
25
Dockerfile
25
Dockerfile
@ -1,18 +1,19 @@
|
||||
FROM docker.io/library/alpine:3.12
|
||||
FROM docker.io/library/node:24.1.0-alpine3.20 AS build
|
||||
|
||||
ARG NODEJS_VERSION=12.22.6-r0
|
||||
ARG MARKDOWNLINT_VERSION
|
||||
ARG MARKDOWNLINT_VERSION=master
|
||||
|
||||
RUN set -ex && \
|
||||
apk add --no-cache nodejs=${NODEJS_VERSION} nodejs-npm=${NODEJS_VERSION}
|
||||
apk update && \
|
||||
apk upgrade && \
|
||||
apk add --no-cache git
|
||||
|
||||
RUN if [ ! -z "${MARKDOWNLINT_VERSION}" ]; then set -ex; npm install -g markdownlint-cli@${MARKDOWNLINT_VERSION}; fi
|
||||
RUN if [ -z "${MARKDOWNLINT_VERSION}" ]; then set -ex; npm install -g markdownlint-cli; fi
|
||||
|
||||
RUN set -ex && \
|
||||
npm cache clean --force && \
|
||||
apk del nodejs-npm
|
||||
RUN git clone --branch ${MARKDOWNLINT_VERSION} https://github.com/igorshubovych/markdownlint-cli /markdownlint && \
|
||||
cd /markdownlint && \
|
||||
npm install --production && \
|
||||
npm install --global
|
||||
|
||||
WORKDIR /work
|
||||
ENTRYPOINT ["/usr/bin/markdownlint"]
|
||||
CMD ["."]
|
||||
|
||||
RUN ln -fs /work /workspace
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/markdownlint" ]
|
||||
|
17
Makefile
17
Makefile
@ -1,22 +1,21 @@
|
||||
# MARKDOWNLINT_VERSION
|
||||
# Only required to install a specifiy version
|
||||
MARKDOWNLINT_VERSION?=
|
||||
# Only required to install a specify version
|
||||
MARKDOWNLINT_VERSION?=v0.45.0 # renovate: datasource=github-releases depName=igorshubovych/markdownlint-cli
|
||||
|
||||
# CONTAINER_RUNTIME
|
||||
# The CONTAINER_RUNTIME variable will be used to specified the path to a
|
||||
# container runtime. This is needed to start and run a container image.
|
||||
CONTAINER_RUNTIME?=$(shell which docker)
|
||||
CONTAINER_RUNTIME?=$(shell which podman)
|
||||
|
||||
# MARKDOWNLINT_IMAGE_REGISTRY_NAME
|
||||
# Defines the name of the new container to be built using several variables.
|
||||
MARKDOWNLINT_IMAGE_REGISTRY_NAME:=docker.io
|
||||
MARKDOWNLINT_IMAGE_REGISTRY_USER:=volkerraschek
|
||||
MARKDOWNLINT_IMAGE_REGISTRY_NAME?=git.cryptic.systems
|
||||
MARKDOWNLINT_IMAGE_REGISTRY_USER?=volker.raschek
|
||||
|
||||
MARKDOWNLINT_IMAGE_NAMESPACE?=${MARKDOWNLINT_IMAGE_REGISTRY_USER}
|
||||
MARKDOWNLINT_IMAGE_NAME:=markdownlint
|
||||
MARKDOWNLINT_IMAGE_VERSION?=latest
|
||||
MARKDOWNLINT_IMAGE_FULLY_QUALIFIED=${MARKDOWNLINT_IMAGE_REGISTRY_NAME}/${MARKDOWNLINT_IMAGE_NAMESPACE}/${MARKDOWNLINT_IMAGE_NAME}:${MARKDOWNLINT_IMAGE_VERSION}
|
||||
MARKDOWNLINT_IMAGE_UNQUALIFIED=${MARKDOWNLINT_IMAGE_NAMESPACE}/${MARKDOWNLINT_IMAGE_NAME}:${MARKDOWNLINT_IMAGE_VERSION}
|
||||
|
||||
# BUILD CONTAINER IMAGE
|
||||
# ==============================================================================
|
||||
@ -28,15 +27,13 @@ container-image/build:
|
||||
--no-cache \
|
||||
--pull \
|
||||
--tag ${MARKDOWNLINT_IMAGE_FULLY_QUALIFIED} \
|
||||
--tag ${MARKDOWNLINT_IMAGE_UNQUALIFIED} \
|
||||
.
|
||||
|
||||
# DELETE CONTAINER IMAGE
|
||||
# ==============================================================================
|
||||
PHONY:=container-image/delete
|
||||
container-image/delete:
|
||||
- ${CONTAINER_RUNTIME} image rm ${MARKDOWNLINT_IMAGE_FULLY_QUALIFIED} ${MARKDOWNLINT_IMAGE_UNQUALIFIED}
|
||||
- ${CONTAINER_RUNTIME} image rm ${BASE_IMAGE_FULL}
|
||||
- ${CONTAINER_RUNTIME} image rm ${MARKDOWNLINT_IMAGE_FULLY_QUALIFIED}
|
||||
|
||||
# PUSH CONTAINER IMAGE
|
||||
# ==============================================================================
|
||||
@ -49,4 +46,4 @@ container-image/push:
|
||||
# ==============================================================================
|
||||
# Declare the contents of the PHONY variable as phony. We keep that information
|
||||
# in a variable so we can use it in if_changed.
|
||||
.PHONY: ${PHONY}
|
||||
.PHONY: ${PHONY}
|
||||
|
13
README.md
13
README.md
@ -1,13 +1,10 @@
|
||||
# markdownlint-docker
|
||||
|
||||
[](https://drone.cryptic.systems/volker.raschek/markdownlint-docker)
|
||||
[](https://hub.docker.com/r/volkerraschek/markdownlint)
|
||||
|
||||
This project contains all sources to build the container image
|
||||
`docker.io/volkerraschek/markdownlint`. The primary goal of this project is to
|
||||
packge the binary `markdownlint-ci` as container image. The source code of the
|
||||
binary can be found in the upstream project of
|
||||
[igorshubovych](https://github.com/igorshubovych/markdownlint-cli).
|
||||
This project contains all sources to build the container image `git.cryptic.systems/volker.raschek/markdownlint`. The
|
||||
primary goal of this project is to package the binary `markdownlint-ci` as container image. The source code of the
|
||||
binary can be found in the upstream project of [igorshubovych](https://github.com/igorshubovych/markdownlint-cli).
|
||||
|
||||
The workflow or how `markdownlint-ci` can in general be used is documented
|
||||
[here](https://github.com/igorshubovych/markdownlint-cli#usage).
|
||||
The workflow or how `markdownlint-ci` can be used is pretty good
|
||||
[documented](https://github.com/igorshubovych/markdownlint-cli#usage).
|
||||
|
@ -1,20 +0,0 @@
|
||||
image: volkerraschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
|
||||
{{#if build.tags}}
|
||||
tags:
|
||||
{{#each build.tags}}
|
||||
- {{this}}
|
||||
{{/each}}
|
||||
- "latest"
|
||||
{{/if}}
|
||||
manifests:
|
||||
-
|
||||
image: volkerraschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: linux
|
||||
-
|
||||
image: volkerraschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-armv7
|
||||
platform:
|
||||
architecture: arm
|
||||
os: linux
|
||||
variant: v7
|
16
renovate.json
Normal file
16
renovate.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"local>volker.raschek/renovate-config:default#master",
|
||||
"local>volker.raschek/renovate-config:container#master",
|
||||
"local>volker.raschek/renovate-config:actions#master",
|
||||
"local>volker.raschek/renovate-config:regexp#master"
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"automerge": false,
|
||||
"matchPackageNames": [ "markdownlint-cli" ],
|
||||
"matchManagers": [ "regex" ]
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user