Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Jul 2, 2021
0 parents commit dcac369
Show file tree
Hide file tree
Showing 14 changed files with 563 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .drone.star
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
def main(ctx):
return [
testing(ctx),
notify(ctx),
]

def testing(ctx):
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'testing',
'platform': {
'os': 'linux',
'arch': 'amd64',
},
'steps': [
{
'name': 'lint',
'image': 'toolhippie/yamllint:latest',
'pull': 'always',
'commands': [
'yamllint .',
],
},
{
'name': 'kustomize',
'image': 'toolhippie/kubectl:latest',
'pull': 'always',
'commands': [
'kustomize build .',
],
},
],
'trigger': {
'ref': [
'refs/heads/master',
'refs/tags/**',
'refs/pull/**',
],
},
}

def notify(ctx):
return {
'kind': 'pipeline',
'type': 'docker',
'name': 'notify',
'platform': {
'os': 'linux',
'arch': 'amd64',
},
'clone': {
'disable': True,
},
'steps': [
{
'name': 'execute',
'image': 'plugins/matrix:1',
'pull': 'always',
'settings': {
'username': {
'from_secret': 'matrix_username',
},
'password': {
'from_secret': 'matrix_password',
},
'roomid': {
'from_secret': 'matrix_roomid',
},
},
},
],
'depends_on': [
'testing',
],
'trigger': {
'ref': [
'refs/heads/master',
'refs/tags/**',
],
'status': [
'failure',
],
},
}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# http://editorconfig.org
root = true

[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
indent_style = space
indent_size = 2
11 changes: 11 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"config:base"
],
"enabledManagers": [
"kustomize"
],
"labels": [
"renovate"
]
}
88 changes: 88 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
repository:
name: clamav
description: Reusable Kustomize manifests for clamav
topics: kustomize, manifest, kubernetes

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

default_branch: master

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

branches:
- name: master
protection:
required_status_checks:
strict: true
contexts:
- continuous-integration/drone/pr
enforce_admins: false
restrictions:
apps:
- renovate
users: []
teams: []

...
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.drone.yml
12 changes: 12 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
extends: default

rules:
line-length: disable

document-end:
level: error
document-start:
level: error

...
Loading

0 comments on commit dcac369

Please sign in to comment.