16 Commits

Author SHA1 Message Date
126140c94c fix(drone) bump markdown-lint image
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-10 10:09:37 +01:00
67a902acaf fix(drone): force rebuild image
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-10 09:58:10 +01:00
76a6abc21d fix: set workdir
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-10 09:40:13 +01:00
b56d837ef2 Merge pull request 'chore(deps): update dependency markdownlint-ci to v0.31.1' (#5) from renovate/markdownlint-ci-0.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #5
2022-02-09 19:22:21 +00:00
1356b5b048 chore(deps): update dependency markdownlint-ci to v0.31.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-02-09 20:15:23 +01:00
bd50e4f7b2 fix: define default branch
All checks were successful
continuous-integration/drone/push Build is passing
2022-02-09 20:09:48 +01:00
6037be6651 fix: build markdownlint-ci from source code
Some checks failed
continuous-integration/drone/push Build is failing
2022-02-09 20:04:48 +01:00
42588b3de7 fix(ci): add package rules
All checks were successful
continuous-integration/drone/push Build is passing
2022-01-30 18:29:55 +01:00
4c8744948a chore(deps): update docker.io/volkerraschek/markdownlint docker tag to v0.30.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2021-11-20 12:04:10 +00:00
ec2286d332 fix(ci): renovate rebase conditions
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-30 12:13:14 +02:00
c3fff14a26 fix(ci): change automergeType to pull request
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-24 16:02:00 +02:00
d928487512 fix(ci): dry-run for pull-requests
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-24 15:33:42 +02:00
b5c1b3ef83 fix(ci): enable automerge
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-24 15:19:51 +02:00
edfdbfb08c Add renovate.json
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2021-10-24 15:17:59 +02:00
e13c51ed5a feat: support arm64
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-23 16:55:29 +02:00
3eb3c59ae1 fix(ci): dependencies and conditions
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-12 21:53:03 +02:00
5 changed files with 410 additions and 43 deletions

View File

@ -5,13 +5,12 @@ name: linter
platform:
os: linux
arch: amd64
steps:
- name: markdown lint
commands:
- markdownlint *.md
image: docker.io/volkerraschek/markdownlint:0.28.1
image: docker.io/volkerraschek/markdownlint:0.31.1
resources:
limits:
cpu: 50
@ -41,6 +40,193 @@ trigger:
event:
exclude:
- tag
---
kind: pipeline
type: docker
name: dry-run-amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: plugins/docker
settings:
auto_tag: false
dry_run: true
force_tag: true
no_cache: true
purge: true
tags: latest-amd64
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
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
depends_on:
- linter
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: dry-run-arm-v7
platform:
os: linux
arch: arm
steps:
- name: build
image: plugins/docker
settings:
auto_tag: false
dry_run: true
force_tag: true
no_cache: true
purge: true
tags: latest-arm-v7
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
- 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
depends_on:
- linter
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: dry-run-arm64-v8
platform:
os: linux
arch: arm64
steps:
- name: build
image: plugins/docker
settings:
auto_tag: false
dry_run: true
force_tag: true
no_cache: true
purge: true
tags: latest-arm64-v8
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
- 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
depends_on:
- linter
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
@ -54,21 +240,19 @@ steps:
- name: build
image: plugins/docker
settings:
dockerfile: Dockerfile
auto_tag: false
force_tag: true
no_cache: true
purge: true
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
@ -91,15 +275,22 @@ volumes:
host:
path: /var/run/docker.sock
depends_on:
- linter
trigger:
branch:
- master
event:
exclude:
- tag
- cron
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: latest-armv7
name: latest-arm-v7
platform:
os: linux
@ -109,18 +300,16 @@ steps:
- name: build
image: plugins/docker
settings:
dockerfile: Dockerfile
auto_tag: false
tags: latest-armv7
force_tag: true
no_cache: true
purge: true
tags: latest-arm-v7
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
@ -146,10 +335,77 @@ volumes:
host:
path: /var/run/docker.sock
depends_on:
- linter
trigger:
branch:
- master
event:
exclude:
- tag
- cron
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: latest-arm64-v8
platform:
os: linux
arch: arm64
steps:
- name: build
image: plugins/docker
settings:
auto_tag: false
force_tag: true
no_cache: true
purge: true
tags: latest-arm64-v8
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
- 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
depends_on:
- linter
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
@ -190,12 +446,17 @@ steps:
depends_on:
- latest-amd64
- latest-armv7
- latest-arm-v7
- latest-arm64-v8
trigger:
branch:
- master
event:
exclude:
- tag
- cron
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
@ -210,9 +471,11 @@ steps:
- name: build
image: plugins/docker
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: amd64
force_tag: true
no_cache: true
purge: true
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
@ -220,7 +483,6 @@ steps:
from_secret: container_image_registry_password
build_args:
- MARKDOWNLINT_VERSION=${DRONE_TAG}
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
@ -255,7 +517,7 @@ trigger:
---
kind: pipeline
type: docker
name: tagged-armv7
name: tagged-arm-v7
platform:
os: linux
@ -265,9 +527,11 @@ steps:
- name: build
image: plugins/docker
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: armv7
auto_tag_suffix: arm-v7
force_tag: true
no_cache: true
purge: true
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
@ -275,7 +539,62 @@ steps:
from_secret: container_image_registry_password
build_args:
- MARKDOWNLINT_VERSION=${DRONE_TAG}
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-arm64-v8
platform:
os: linux
arch: arm64
steps:
- name: build
image: plugins/docker
settings:
auto_tag: true
auto_tag_suffix: ard64-v8
force_tag: true
no_cache: true
purge: true
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
password:
from_secret: container_image_registry_password
build_args:
- MARKDOWNLINT_VERSION=${DRONE_TAG}
volumes:
- name: docker_socket
path: /var/run/docker.sock
@ -346,7 +665,8 @@ steps:
depends_on:
- tagged-amd64
- tagged-armv7
- tagged-arm-v7
- tagged-arm64-v8
trigger:
event:
@ -397,8 +717,14 @@ steps:
- changed
- failure
depends_on:
- latest-manifest
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/markdownlint-docker
- volker.raschek/markdownlint-docker

View File

@ -1,18 +1,19 @@
FROM docker.io/library/alpine:3.12
FROM docker.io/library/node:lts-alpine3.15 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" ]

View File

@ -1,6 +1,6 @@
# MARKDOWNLINT_VERSION
# Only required to install a specifiy version
MARKDOWNLINT_VERSION?=
MARKDOWNLINT_VERSION?=v0.31.1 # renovate: datasource=github-releases depName=markdownlint-ci lookupName=igorshubovych/markdownlint-cli versioning=semver
# CONTAINER_RUNTIME
# The CONTAINER_RUNTIME variable will be used to specified the path to a

View File

@ -13,8 +13,14 @@ manifests:
architecture: amd64
os: linux
-
image: volkerraschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-armv7
image: volkerraschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-arm-v7
platform:
architecture: arm
os: linux
variant: v7
variant: v7
-
image: volkerraschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-arm64-v8
platform:
architecture: arm64
os: linux
variant: v8

34
renovate.json Normal file
View File

@ -0,0 +1,34 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"assignees": [ "volker.raschek" ],
"automergeStrategy": "merge-commit",
"automergeType": "pr",
"labels": [ "renovate" ],
"packageRules": [
{
"addLabels": [ "renovate/droneci", "renovate/automerge" ],
"automerge": true,
"matchManagers": "droneci",
"matchUpdateTypes": [ "minor", "patch"]
},
{
"addLabels": [ "renovate/markdownlint-cli", "renovate/automerge" ],
"automerge": false,
"matchPackageNames": [ "markdownlint-cli" ],
"matchManagers": [ "regex" ]
}
],
"rebaseLabel": "renovate/rebase",
"rebaseWhen": "behind-base-branch",
"regexManagers": [
{
"description": "Update version",
"fileMatch": [
"^Makefile$"
],
"matchStrings": [
"MARKDOWNLINT_VERSION\\?=(?<currentValue>.*) # renovate: datasource=(?<datasource>.*) depName=(?<depName>.*) (lookupName=(?<lookupName>.*))? (versioning=(?<versioning>.*))?"
]
}
]
}