Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Oct 15, 2021
0 parents commit 566eb5a
Show file tree
Hide file tree
Showing 8 changed files with 603 additions and 0 deletions.
82 changes: 82 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"extends": [
"config:base",
":semanticCommits",
":semanticCommitType(deps)",
":automergeMinor"
],
"regexManagers": [{
"fileMatch": [
"Dockerfile"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( versioning=(?<versioning>.*?))?\nENV .*?_VERSION=(?<currentValue>.*)"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}],
"packageRules": [{
"description": "Strip v prefix from versions",
"groupName": "version prefix",
"matchDatasources": [
"github-releases"
],
"extractVersion": "^v(?<version>.*)$"
},
{
"description": "Automerge docker version updates",
"groupName": "docker updates",
"matchDatasources": [
"docker"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"semanticCommitType": "deps",
"semanticCommitScope": "minor",
"automerge": true
},
{
"description": "Semantic commits for major updates",
"groupName": "major updates",
"matchDatasources": [
"github-releases"
],
"matchUpdateTypes": [
"major"
],
"semanticCommitType": "deps",
"semanticCommitScope": "major",
"automerge": true
},
{
"description": "Semantic commits for minor updates",
"groupName": "minor updates",
"matchDatasources": [
"github-releases"
],
"matchUpdateTypes": [
"minor"
],
"semanticCommitType": "deps",
"semanticCommitScope": "minor",
"automerge": true
},
{
"description": "Semantic commits for patch updates",
"groupName": "patch updates",
"matchDatasources": [
"github-releases"
],
"matchUpdateTypes": [
"patch"
],
"semanticCommitType": "deps",
"semanticCommitScope": "patch",
"automerge": true
}
],
"labels": [
"renovate"
]
}
74 changes: 74 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
repository:
name: yamllint
description: Action to validate/lint YAML files
topics: github, action

private: false
has_issues: true
has_wiki: false
has_downloads: false

default_branch: v1

allow_squash_merge: true
allow_merge_commit: true
allow_rebase_merge: true

labels:
- name: bug
color: fc2929
description: Something isn't working
- name: duplicate
color: cccccc
description: This issue or pull request already exists
- name: enhancement
color: 84b6eb
description: New feature or request
- name: good first issue
color: 7057ff
description: Good for newcomers
- name: help wanted
color: 159818
description: Extra attention is needed
- name: invalid
color: e6e6e6
description: This doesn't seem right
- name: question
color: cc317c
description: Further information is requested
- name: renovate
color: 1d76db
description: Automated action from Renovate
- name: wontfix
color: 5319e7
description: This will not be worked on
- name: hacktoberfest
color: d4c5f9
description: Contribution at Hacktoberfest appreciated
- name: ready
color: ededed
description: This is ready to be worked on
- name: in progress
color: ededed
description: This is currently worked on
- name: infra
color: 006b75
description: Related to the infrastructure
- name: lint
color: fbca04
description: Related to linting tools
- name: poc
color: c2e0c6
description: Proof of concept for new feature
- name: rebase
color: ffa8a5
description: Branch requires a rebase
- name: third-party
color: e99695
description: Depends on third-party tool or library
- name: translation
color: b60205
description: Change or issue related to translations

...
65 changes: 65 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
name: docker

on:
push:
branches:
- v1
pull_request:
branches:
- v1

jobs:
publish:
runs-on: ubuntu-20.04

steps:
- name: Checkout source
id: source
uses: actions/checkout@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: ghcr.io/${{ github.repository }}
flavor: |
latest=true
tags: |
type=ref,enable=true,event=branch
type=ref,enable=true,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
labels: |
org.opencontainers.image.vendor=Webhippie
maintainer=Thomas Boerger <thomas@webhippie.de>
- name: Setup QEMU
id: qemu
uses: docker/setup-qemu-action@v1

- name: Setup Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Docker login
id: login
uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker build
id: docker
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}

...
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM alpine:3.14

# renovate: datasource=pypi depName=yamllint
ENV YAMLLINT_VERSION=1.26.3

RUN apk add --no-cache python3 python3-dev py3-pip && \
pip3 install -U yamllint==${YAMLLINT_VERSION} && \
rm -rf /root/.cache

ENTRYPOINT ["/usr/local/bin/entrypoint"]
COPY overlay /
Loading

0 comments on commit 566eb5a

Please sign in to comment.