18 Commits

Author SHA1 Message Date
d2730585a3 fix(renovate): adapt markdownlint version regexp
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-25 12:28:36 +02:00
595e325c43 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-19 19:22:09 +02:00
770dc74913 fix: correct auto tag suffix
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-19 19:15:01 +02:00
4eff9bdbb0 fix: bump to v0.32.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 10:31:06 +02:00
67364ffee2 fix: use podman instead of docker
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-18 10:26:50 +02:00
8c92b356b3 fix(ci): resource limits
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-22 13:09:53 +02:00
29d1ea0ff2 fix(ci): use fully qualified image name
Some checks reported errors
continuous-integration/drone/push Build was killed
2022-05-22 13:02:12 +02:00
0c87bbe6eb fix(ci): use gitea to sync repo with github
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-03 17:44:42 +02:00
16fc320a9e fix(ci): renovate search condition
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-14 22:03:46 +02:00
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
4 changed files with 99 additions and 118 deletions

View File

@@ -10,11 +10,11 @@ steps:
- name: markdown lint
commands:
- markdownlint *.md
image: docker.io/volkerraschek/markdownlint:0.29.0
image: docker.io/volkerraschek/markdownlint:0.32.0
resources:
limits:
cpu: 50
memory: 50M
cpu: 150
memory: 150M
- name: email-notification
environment:
@@ -29,8 +29,8 @@ steps:
image: docker.io/drillster/drone-email:latest
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
@@ -52,24 +52,25 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
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
no_cache: true
volumes:
- name: docker_socket
path: /var/run/docker.sock
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -113,21 +114,22 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
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
no_cache: true
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -174,21 +176,22 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
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
no_cache: true
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -235,23 +238,24 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
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
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -294,20 +298,21 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: false
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
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -353,20 +358,21 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
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
no_cache: true
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -408,7 +414,7 @@ name: latest-manifest
steps:
- name: build-manifest
image: plugins/manifest
image: docker.io/plugins/manifest:latest
settings:
auto_tag: false
ignore_missing: true
@@ -431,8 +437,8 @@ steps:
from_secret: smtp_mail_address
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
@@ -463,11 +469,13 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
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
@@ -475,13 +483,12 @@ 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
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -518,11 +525,13 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: arm-v7
force_tag: true
no_cache: true
purge: true
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
@@ -530,13 +539,12 @@ 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
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -573,11 +581,13 @@ platform:
steps:
- name: build
image: plugins/docker
image: docker.io/plugins/docker:latest
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: arm64-v8
force_tag: true
no_cache: true
purge: true
repo: volkerraschek/markdownlint
username:
from_secret: container_image_registry_user
@@ -585,13 +595,12 @@ 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
- name: notify
image: drillster/drone-email
image: docker.io/drillster/drone-email:latest
environment:
PLUGIN_HOST:
from_secret: smtp_host
@@ -624,7 +633,7 @@ name: tagged-manifest
steps:
- name: build-manifest
image: plugins/manifest
image: docker.io/plugins/manifest:latest
settings:
auto_tag: true
ignore_missing: true
@@ -647,8 +656,8 @@ steps:
from_secret: smtp_mail_address
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
@@ -664,58 +673,3 @@ trigger:
- 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
depends_on:
- latest-manifest
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/markdownlint-docker

View File

@@ -1,18 +1,19 @@
FROM docker.io/library/alpine:3.12
FROM docker.io/library/node:lts-alpine3.16 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,11 +1,11 @@
# MARKDOWNLINT_VERSION
# Only required to install a specifiy version
MARKDOWNLINT_VERSION?=
MARKDOWNLINT_VERSION?=v0.32.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.

View File

@@ -1,8 +1,34 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"automerge": true,
"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"
"rebaseWhen": "behind-base-branch",
"regexManagers": [
{
"description": "Update version",
"fileMatch": [
"^Makefile$"
],
"matchStrings": [
"MARKDOWNLINT_VERSION\\?=(?<currentValue>.*) # renovate: datasource=(?<datasource>.*) depName=(?<depName>.*)( lookupName=(?<lookupName>.*))?( versioning=(?<versioning>.*))?"
]
}
]
}