Compare commits

..

17 Commits

Author SHA1 Message Date
18021dc6b2
ci: replace deprecated workflow syntax
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
2024-10-26 20:55:52 +02:00
0246d3f994
ci: fix notification step
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
2024-08-12 09:41:12 +02:00
67d610b917
ci: use list style syntax for steps
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
2024-01-16 16:26:51 +01:00
e8b99410ca
ci: replace drone gitea-release plugin by woodpecker plugin
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
2024-01-06 21:45:40 +01:00
bc9a5f067d
trigger ci
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
2024-01-04 21:06:15 +01:00
4f5623759f
remove unnecessary git fetch command from ci 2024-01-04 20:53:54 +01:00
aab70ea59a
ci: add missing test group
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
2023-12-15 22:44:25 +01:00
a1c1e591b5 refactor: migrate to woodpecker ci (#3)
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
Reviewed-on: #3
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
2023-11-08 09:02:25 +01:00
6f2ef98905
fix drone-matrix template
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-08 21:24:15 +01:00
dd21395264
chore: end of the year maintenance
All checks were successful
continuous-integration/drone/push Build is passing
2021-12-21 10:59:40 +01:00
dbf49f246e chore: adjust changelog template to link to prs instead of issues (#2)
All checks were successful
continuous-integration/drone/push Build is passing
Co-authored-by: Robert Kaussow <xoxys@rknet.org>
Co-committed-by: Robert Kaussow <xoxys@rknet.org>
2021-12-12 13:24:36 +01:00
566e1a421f
fix: add newline after each log line
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-10-09 15:14:19 +02:00
f3c1423c12
fix: switch back to printf for log outputs
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-10-09 15:07:23 +02:00
dac9883008
fix: use echo to output logs
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-10-09 14:40:23 +02:00
1ed052cd1b
add chglog config
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-10-09 14:11:41 +02:00
cb02272153
check scripts recursively
Some checks failed
continuous-integration/drone/push Build is failing
2021-10-09 14:10:11 +02:00
c87766313e
check scripts recursively
Some checks failed
continuous-integration/drone/push Build is failing
2021-10-09 14:03:50 +02:00
12 changed files with 165 additions and 136 deletions

0
.dictionary Normal file
View File

View File

@ -1,124 +0,0 @@
---
kind: pipeline
name: test
platform:
os: linux
arch: amd64
steps:
- name: lint
image: koalaman/shellcheck-alpine:stable
commands:
- shellcheck ./wait-for
- name: markdownlint
image: thegeeklab/markdownlint-cli
commands:
- markdownlint 'README.md'
trigger:
ref:
- refs/heads/main
- refs/pull/**
- refs/tags/**
---
kind: pipeline
name: build-package
platform:
os: linux
arch: amd64
steps:
- name: package
image: thegeeklab/alpine-tools
commands:
- mkdir dist/
- tar -C ./overlay -zcvf dist/container-library.tar.gz .
- name: checksum
image: thegeeklab/alpine-tools
commands:
- cd dist/ && sha256sum * > ../sha256sum.txt
- name: changelog-generate
image: thegeeklab/git-chglog
commands:
- git fetch -tq
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
- name: changelog-format
image: thegeeklab/alpine-tools
commands:
- prettier CHANGELOG.md
- prettier -w CHANGELOG.md
- name: publish-gitea
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.rknet.org
files:
- dist/*
- sha256sum.txt
note: CHANGELOG.md
overwrite: true
title: ${DRONE_TAG}
when:
ref:
- refs/tags/**
trigger:
ref:
- refs/heads/main
- refs/pull/**
- refs/tags/**
depends_on:
- test
---
kind: pipeline
name: notifications
platform:
os: linux
arch: amd64
steps:
- name: matrix
image: thegeeklab/drone-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 }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}"
username:
from_secret: matrix_username
when:
status:
- success
- failure
trigger:
ref:
- refs/heads/main
- refs/tags/**
status:
- success
- failure
depends_on:
- build-package
---
kind: signature
hmac: c302e7a32ae780992880870f63a96cba87d844baae7d6c9b89b2aa748cb1eb5a
...

47
.gitsv/config.yml Normal file
View 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]+"

View File

@ -1,2 +1,2 @@
.drone.yml
*.tpl.md
LICENSE

View File

@ -0,0 +1,42 @@
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
- name: package
image: quay.io/thegeeklab/alpine-tools
commands:
- mkdir dist/
- tar -C ./overlay -zcvf dist/container-library.tar.gz .
- name: checksum
image: quay.io/thegeeklab/alpine-tools
commands:
- cd dist/ && sha256sum * > ../sha256sum.txt
- 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
files:
- dist/*
- sha256sum.txt
title: ${CI_COMMIT_TAG}
when:
- event: [tag]
depends_on:
- test

27
.woodpecker/docs.yml Normal file
View File

@ -0,0 +1,27 @@
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
- name: markdownlint
image: quay.io/thegeeklab/markdownlint-cli
commands:
- markdownlint 'README.md'
- name: spellcheck
image: quay.io/thegeeklab/alpine-tools
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
commands:
- lychee --no-progress --format detailed README.md
depends_on:
- build-package

26
.woodpecker/notify.yml Normal file
View 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
room_id:
from_secret: matrix_room_id
user_id:
from_secret: matrix_user_id
access_token:
from_secret: matrix_access_token
when:
- status: [success, failure]
depends_on:
- docs

13
.woodpecker/test.yml Normal file
View File

@ -0,0 +1,13 @@
---
when:
- event: [pull_request, tag]
- event: [push, manual]
branch:
- ${CI_REPO_DEFAULT_BRANCH}
steps:
- name: lint
image: docker.io/koalaman/shellcheck-alpine:stable
commands:
- shellcheck --version
- grep -ErlI '^#!(.*/|.*env +)(sh|bash|ksh)' ./overlay/ | xargs shellcheck

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021 Robert Kaussow <mail@thegeeklab.de>
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

View File

@ -1,10 +1,14 @@
# container-library
[![Build Status](https://img.shields.io/drone/build/docker/container-library?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/docker/container-library)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/docker/container-library/src/branch/main/LICENSE)
<!-- spellchecker-disable -->
[![Build Status](https://ci.rknet.org/api/badges/container/container-library/status.svg)](https://ci.rknet.org/repos/container/container-library)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/container/container-library/src/branch/main/LICENSE)
<!-- spellchecker-enable -->
Basic utilities script library to use in container images.
## License
This project is licensed under the MIT License - see the [LICENSE](https://gitea.rknet.org/docker/container-library/src/branch/main/LICENSE) file for details.
This project is licensed under the MIT License - see the [LICENSE](https://gitea.rknet.org/container/container-library/src/branch/main/LICENSE) file for details.

View File

@ -8,7 +8,7 @@ log() {
message="$2"
timestamp=$(date +"%Y-%m-%d %H:%M:%S")
script_name="$(basename "$0")"
printf >&2 "%s [%s] [%s] %s" "${timestamp}" "${level}" "$script_name" "${message}"
printf >&2 "%s [%s] [%s] %b\n" "${timestamp}" "${level}" "$script_name" "${message}"
}
# Log the given message at INFO level. All logs are written to stderr with a timestamp.

View File

@ -1,6 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}