53 Commits

Author SHA1 Message Date
6e8a6e70f7 fix(ci): define container-runtime
Some checks failed
build-x86_64
build / build-x86_64 (push) Failing after 14s
2023-05-21 13:07:15 +02:00
bcf0eed0a9 Merge pull request 'chore(deps): update dependency quay.io/skopeo/stable to v1.12.0' (#18) from renovate/quay.io-skopeo-stable-1.x into master
Some checks failed
build-x86_64
Reviewed-on: #18
2023-05-21 10:47:09 +00:00
ab620531ed chore(deps): update dependency quay.io/skopeo/stable to v1.12.0
Some checks failed
build-x86_64
2023-05-18 13:58:38 +02:00
fc500c5605 fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:52:33 +02:00
ceebed25a0 fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:47:38 +02:00
55a7affa1a fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:46:57 +02:00
50ca134431 fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:46:18 +02:00
1824582a49 fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:45:21 +02:00
5b98632bbf fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:40:02 +02:00
5a8f64a0ff fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:39:27 +02:00
1fa4eadfc4 fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:39:03 +02:00
67f6b13bae fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:29:23 +02:00
441402ae5c fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:28:39 +02:00
5c87f90b5d fix(ci): migrate to gitea actions
Some checks failed
build-x86_64
2023-04-13 22:20:21 +02:00
4b46541ba2 fix(ci): migrate to gitea actions 2023-04-13 22:19:39 +02:00
f199db68d3 chore(deps): update dependency quay.io/skopeo/stable to v1.11.2
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
2023-04-13 01:12:23 +02:00
5b1adb7440 feat(ci): use gitea as registry and docker as mirror
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-10 18:36:51 +02:00
f672c8fb13 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.33.0
Some checks reported errors
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build encountered an error
2023-01-07 19:43:02 +01:00
709eda51ef chore(deps): update dependency igorshubovych/markdownlint-cli to v0.33.0
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-01-07 08:33:33 +01:00
91fc78e658 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.2
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-08-21 16:42:38 +02:00
556a2e2006 chore(deps): update dependency igorshubovych/markdownlint-cli to v0.32.2
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing
2022-08-21 00:52:28 +02:00
04b1345a71 fix(ci): remove docker socket volume
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-26 17:36:25 +02:00
a5446ba303 fix(ci): use docker.io/volkerraschek/drone-email:0.1.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-07-26 16:01:54 +02:00
df22dc8219 chore(deps): update dependency docker.io/volkerraschek/markdownlint to v0.32.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-25 13:15:30 +02:00
251fe34445 Merge pull request 'chore(deps): update dependency igorshubovych/markdownlint-cli to v0.32.1' (#8) from renovate/igorshubovych-markdownlint-cli-0.x into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #8
2022-07-25 10:32:13 +00:00
f3aeb335e7 chore(deps): update dependency igorshubovych/markdownlint-cli to v0.32.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2022-07-25 12:31:28 +02:00
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
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
40d7da11c1 fix: README
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-08 19:44:53 +02:00
d748da0378 fix: Makefile
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-08 19:38:08 +02:00
8 changed files with 697 additions and 193 deletions

View File

@ -3,35 +3,42 @@ kind: pipeline
type: kubernetes
name: linter
clone:
disable: true
platform:
os: linux
arch: amd64
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: markdown lint
commands:
- markdownlint *.md
image: docker.io/volkerraschek/markdownlint:0.28.1
image: git.cryptic.systems/volker.raschek/markdownlint:0.33.0
resources:
limits:
cpu: 50
memory: 50M
cpu: 150
memory: 150M
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
image: docker.io/volkerraschek/drone-email:0.1.1
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
@ -41,148 +48,419 @@ trigger:
event:
exclude:
- tag
---
kind: pipeline
type: docker
name: latest-amd64
name: dry-run-amd64
clone:
disable: true
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: clone
image: docker.io/drone/git:1.2.1
- name: notify
image: drillster/drone-email
- name: build
image: docker.io/plugins/docker:20.10.9
settings:
auto_tag: false
dry_run: true
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/markdownlint
tags: latest-amd64
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
depends_on:
- linter
trigger:
event:
branch:
exclude:
- tag
- master
event:
- pull_request
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: latest-armv7
name: dry-run-arm-v7
clone:
disable: true
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: clone
image: docker.io/drone/git:1.2.1
- name: notify
image: drillster/drone-email
- name: build
image: docker.io/plugins/docker:20.10.9
settings:
auto_tag: false
dry_run: true
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/markdownlint
tags: latest-arm-v7
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
volumes:
- name: docker_socket
path: /var/run/docker.sock
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
depends_on:
- linter
trigger:
event:
branch:
exclude:
- tag
- master
event:
- pull_request
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: dry-run-arm64-v8
clone:
disable: true
platform:
os: linux
arch: arm64
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build
image: docker.io/plugins/docker:20.10.9
settings:
auto_tag: false
dry_run: true
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
tags: latest-arm64-v8
repo: git.cryptic.systems/volker.raschek/markdownlint
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
depends_on:
- linter
trigger:
branch:
exclude:
- master
event:
- pull_request
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: latest-amd64
clone:
disable: true
platform:
os: linux
arch: amd64
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build
image: docker.io/plugins/docker:20.10.9
settings:
auto_tag: false
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/markdownlint
tags: latest-amd64
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
depends_on:
- linter
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: latest-arm-v7
clone:
disable: true
platform:
os: linux
arch: arm
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build
image: docker.io/plugins/docker:20.10.9
settings:
auto_tag: false
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/markdownlint
tags: latest-arm-v7
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
depends_on:
- linter
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: latest-arm64-v8
clone:
disable: true
platform:
os: linux
arch: arm64
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build
image: docker.io/plugins/docker:20.10.9
settings:
auto_tag: false
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
tags: latest-arm64-v8
repo: git.cryptic.systems/volker.raschek/markdownlint
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
depends_on:
- linter
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: kubernetes
name: latest-manifest
clone:
disable: true
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build-manifest
image: plugins/manifest
image: docker.io/plugins/manifest:latest
settings:
auto_tag: false
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: container_image_registry_user
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: container_image_registry_password
from_secret: git_cryptic_systems_container_registry_password
- name: notify
image: docker.io/drillster/drone-email:latest
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/volkerraschek/drone-email:0.1.1
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
@ -190,62 +468,129 @@ 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
type: kubernetes
name: latest-sync
clone:
disable: true
depends_on:
- latest-manifest
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: latest-docker-sync
commands:
- skopeo sync --all --src=docker --src-creds=$SRC_CRED_USERNAME:$SRC_CRED_PASSWORD --dest=docker --dest-creds=$DEST_CRED_USERNAME:$DEST_CRED_PASSWORD git.cryptic.systems/volker.raschek/markdownlint docker.io/volkerraschek
environment:
SRC_CRED_USERNAME:
from_secret: git_cryptic_systems_container_registry_user
SRC_CRED_PASSWORD:
from_secret: git_cryptic_systems_container_registry_password
DEST_CRED_USERNAME:
from_secret: container_image_registry_user
DEST_CRED_PASSWORD:
from_secret: container_image_registry_password
image: quay.io/skopeo/stable:v1.12.0
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
resources:
limits:
cpu: 150
memory: 150M
when:
status:
- changed
- failure
trigger:
branch:
- master
event:
- cron
- push
repo:
- volker.raschek/markdownlint-docker
---
kind: pipeline
type: docker
name: tagged-amd64
clone:
disable: true
platform:
os: linux
arch: amd64
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build
image: plugins/docker
image: docker.io/plugins/docker:20.10.9
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: amd64
repo: volkerraschek/markdownlint
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/markdownlint
username:
from_secret: container_image_registry_user
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: container_image_registry_password
from_secret: git_cryptic_systems_container_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
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
volumes:
- name: docker_socket
host:
path: /var/run/docker.sock
trigger:
event:
- tag
@ -255,51 +600,110 @@ trigger:
---
kind: pipeline
type: docker
name: tagged-armv7
name: tagged-arm-v7
clone:
disable: true
platform:
os: linux
arch: arm
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build
image: plugins/docker
image: docker.io/plugins/docker:20.10.9
settings:
dockerfile: Dockerfile
auto_tag: true
auto_tag_suffix: armv7
repo: volkerraschek/markdownlint
auto_tag_suffix: arm-v7
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/markdownlint
username:
from_secret: container_image_registry_user
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: container_image_registry_password
from_secret: git_cryptic_systems_container_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
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/volkerraschek/drone-email:0.1.1
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
clone:
disable: true
platform:
os: linux
arch: arm64
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build
image: docker.io/plugins/docker:20.10.9
settings:
auto_tag: true
auto_tag_suffix: arm64-v8
force_tag: true
no_cache: true
purge: true
registry: git.cryptic.systems
repo: git.cryptic.systems/volker.raschek/markdownlint
username:
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: git_cryptic_systems_container_registry_password
build_args:
- MARKDOWNLINT_VERSION=${DRONE_TAG}
- name: email-notification
environment:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
SMTP_USERNAME:
from_secret: smtp_username
SMTP_PASSWORD:
from_secret: smtp_password
image: docker.io/volkerraschek/drone-email:0.1.1
when:
status:
- changed
- failure
trigger:
event:
@ -312,33 +716,41 @@ kind: pipeline
type: kubernetes
name: tagged-manifest
clone:
disable: true
steps:
- name: clone
image: docker.io/drone/git:1.2.1
- name: build-manifest
image: plugins/manifest
image: docker.io/plugins/manifest:latest
settings:
auto_tag: true
ignore_missing: true
spec: manifest.tmpl
username:
from_secret: container_image_registry_user
from_secret: git_cryptic_systems_container_registry_user
password:
from_secret: container_image_registry_password
from_secret: git_cryptic_systems_container_registry_password
- name: notify
image: docker.io/drillster/drone-email:latest
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/volkerraschek/drone-email:0.1.1
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
@ -346,7 +758,8 @@ steps:
depends_on:
- tagged-amd64
- tagged-armv7
- tagged-arm-v7
- tagged-arm64-v8
trigger:
event:
@ -357,48 +770,56 @@ trigger:
---
kind: pipeline
type: kubernetes
name: sync
name: tagged-sync
platform:
os: linux
arch: amd64
clone:
disable: true
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: clone
image: docker.io/drone/git:1.2.1
- name: tagged-docker-sync
commands:
- skopeo sync --all --src=docker --src-creds=$SRC_CRED_USERNAME:$SRC_CRED_PASSWORD --dest=docker --dest-creds=$DEST_CRED_USERNAME:$DEST_CRED_PASSWORD git.cryptic.systems/volker.raschek/markdownlint docker.io/volkerraschek
environment:
SRC_CRED_USERNAME:
from_secret: git_cryptic_systems_container_registry_user
SRC_CRED_PASSWORD:
from_secret: git_cryptic_systems_container_registry_password
DEST_CRED_USERNAME:
from_secret: container_image_registry_user
DEST_CRED_PASSWORD:
from_secret: container_image_registry_password
image: quay.io/skopeo/stable:v1.12.0
- name: email-notification
environment:
PLUGIN_HOST:
SMTP_FROM_ADDRESS:
from_secret: smtp_from_address
SMTP_FROM_NAME:
from_secret: smtp_from_name
SMTP_HOST:
from_secret: smtp_host
PLUGIN_USERNAME:
SMTP_USERNAME:
from_secret: smtp_username
PLUGIN_PASSWORD:
SMTP_PASSWORD:
from_secret: smtp_password
PLUGIN_FROM:
from_secret: smtp_mail_address
image: docker.io/drillster/drone-email:latest
image: docker.io/volkerraschek/drone-email:0.1.1
resources:
limits:
cpu: 50
memory: 25M
cpu: 150
memory: 150M
when:
status:
- changed
- failure
depends_on:
- tagged-manifest
trigger:
event:
- push
- tag
repo:
- volker.raschek/markdownlint-docker

View File

@ -0,0 +1,32 @@
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-x86_64:
runs-on: x86_64
steps:
- name: checkout repo
uses: actions/checkout@v3
# - name: Install docker
# run: |
# apt-get update
# apt-get upgrade --yes
# apt-get install --yes ca-certificates curl gnupg
# install -m 0755 -d /etc/apt/keyrings
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# chmod a+r /etc/apt/keyrings/docker.gpg
# echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# apt-get update --yes
# apt-get install --yes docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- name: build application
env:
CONTAINER_RUNTIME: podman
shell: bash
run: make container-image/build

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
# IntelliJ
.idea/
sync.sh

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,12 +1,11 @@
# MARKDOWNLINT_VERSION
# Only required to install a specifiy version
MARKDOWNLINT_VERSION?=
MARKDOWNLINT_VERSION?=v0.33.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.

13
README.md Normal file
View File

@ -0,0 +1,13 @@
# markdownlint-docker
[![Build Status](https://drone.cryptic.systems/api/badges/volker.raschek/markdownlint-docker/status.svg)](https://drone.cryptic.systems/volker.raschek/markdownlint-docker)
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/markdownlint)](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).
The workflow or how `markdownlint-ci` can in general be used is documented
[here](https://github.com/igorshubovych/markdownlint-cli#usage).

View File

@ -1,4 +1,4 @@
image: volkerraschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
image: git.cryptic.systems/volker.raschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
@ -7,14 +7,17 @@ tags:
- "latest"
{{/if}}
manifests:
-
image: volkerraschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-amd64
- image: git.cryptic.systems/volker.raschek/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
- image: git.cryptic.systems/volker.raschek/markdownlint:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-arm-v7
platform:
architecture: arm
os: linux
variant: v7
variant: v7
- image: git.cryptic.systems/volker.raschek/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>.*))?"
]
}
]
}