Skip to content

Commit 378831f

Browse files
committed
initial commit
0 parents  commit 378831f

40 files changed

+2450
-0
lines changed

.dictionary

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
userid
2+
url
3+
roomid
4+
wp-git-clone

.github/settings.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
repository:
2+
name: wp-git-clone
3+
description: Woodpecker CI plugin to clone git repositories
4+
homepage: https://woodpecker-plugins.geekdocs.de/plugins/wp-git-clone
5+
topics: woodpecker-ci, woodpecker, woodpecker-plugin
6+
7+
private: false
8+
has_issues: true
9+
has_wiki: false
10+
has_downloads: true
11+
12+
default_branch: main
13+
14+
allow_squash_merge: true
15+
allow_merge_commit: true
16+
allow_rebase_merge: true
17+
18+
labels:
19+
- name: bug
20+
color: d73a4a
21+
description: Something isn't working
22+
- name: documentation
23+
color: 0075ca
24+
description: Improvements or additions to documentation
25+
- name: duplicate
26+
color: cfd3d7
27+
description: This issue or pull request already exists
28+
- name: enhancement
29+
color: a2eeef
30+
description: New feature or request
31+
- name: good first issue
32+
color: 7057ff
33+
description: Good for newcomers
34+
- name: help wanted
35+
color: 008672
36+
description: Extra attention is needed
37+
- name: invalid
38+
color: e4e669
39+
description: This doesn't seem right
40+
- name: question
41+
color: d876e3
42+
description: Further information is requested
43+
- name: wontfix
44+
color: ffffff
45+
description: This will not be worked on
46+
47+
branches:
48+
- name: main
49+
protection:
50+
required_pull_request_reviews: null
51+
required_status_checks:
52+
strict: false
53+
contexts:
54+
- ci/woodpecker/pr/test
55+
- ci/woodpecker/pr/build-package
56+
- ci/woodpecker/pr/build-container
57+
- ci/woodpecker/pr/docs
58+
enforce_admins: false
59+
required_linear_history: true
60+
restrictions: null
61+
- name: docs
62+
protection:
63+
required_pull_request_reviews: null
64+
required_status_checks: null
65+
enforce_admins: true
66+
required_linear_history: true
67+
restrictions:
68+
apps: []
69+
users: []
70+
teams:
71+
- bot

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/dist
2+
/release
3+
/wp-git-clone*
4+
docs/data/data-raw.yaml
5+
6+
coverage.out
7+
CHANGELOG.md

.gitsv/config.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
version: "1.1"
3+
4+
versioning:
5+
update-major: []
6+
update-minor: [feat]
7+
update-patch: [fix, perf, refactor, chore, test, ci, docs]
8+
9+
tag:
10+
pattern: "v%d.%d.%d"
11+
12+
release-notes:
13+
sections:
14+
- name: Features
15+
commit-types: [feat]
16+
section-type: commits
17+
- name: Bug Fixes
18+
commit-types: [fix]
19+
section-type: commits
20+
- name: Performance Improvements
21+
commit-types: [perf]
22+
section-type: commits
23+
- name: Code Refactoring
24+
commit-types: [refactor]
25+
section-type: commits
26+
- name: Others
27+
commit-types: [chore]
28+
section-type: commits
29+
- name: Testing
30+
commit-types: [test]
31+
section-type: commits
32+
- name: CI Pipeline
33+
commit-types: [ci]
34+
section-type: commits
35+
- name: Documentation
36+
commit-types: [docs]
37+
section-type: commits
38+
- name: BREAKING CHANGES
39+
section-type: breaking-changes
40+
41+
commit-message:
42+
footer:
43+
issue:
44+
key: issue
45+
add-value-prefix: "#"
46+
issue:
47+
regex: "#?[0-9]+"

.golangci.yml

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
linters:
2+
enable-all: false
3+
disable-all: true
4+
enable:
5+
- errcheck
6+
- gosimple
7+
- govet
8+
- ineffassign
9+
- staticcheck
10+
- typecheck
11+
- unused
12+
- asasalint
13+
- asciicheck
14+
- bidichk
15+
- bodyclose
16+
- containedctx
17+
- contextcheck
18+
- decorder
19+
- dogsled
20+
- dupl
21+
- dupword
22+
- durationcheck
23+
- errchkjson
24+
- errname
25+
- errorlint
26+
- execinquery
27+
- exhaustive
28+
- exportloopref
29+
- forcetypeassert
30+
- ginkgolinter
31+
- gocheckcompilerdirectives
32+
- gochecknoglobals
33+
- gochecknoinits
34+
- gocognit
35+
- goconst
36+
- gocritic
37+
- gocyclo
38+
- godot
39+
- godox
40+
- goerr113
41+
- gofmt
42+
- gofumpt
43+
- goheader
44+
- goimports
45+
- gomnd
46+
- gomoddirectives
47+
- gomodguard
48+
- goprintffuncname
49+
- gosec
50+
- grouper
51+
- importas
52+
- interfacebloat
53+
- ireturn
54+
- lll
55+
- loggercheck
56+
- maintidx
57+
- makezero
58+
- misspell
59+
- musttag
60+
- nakedret
61+
- nestif
62+
- nilerr
63+
- nilnil
64+
- nlreturn
65+
- noctx
66+
- nolintlint
67+
- nonamedreturns
68+
- nosprintfhostport
69+
- prealloc
70+
- predeclared
71+
- promlinter
72+
- reassign
73+
- revive
74+
# - rowserrcheck
75+
# - sqlclosecheck
76+
# - structcheck
77+
- stylecheck
78+
- tagliatelle
79+
- tenv
80+
- testableexamples
81+
- thelper
82+
- tparallel
83+
- unconvert
84+
- unparam
85+
- usestdlibvars
86+
# - wastedassign
87+
- whitespace
88+
- wsl
89+
- zerologlint
90+
fast: false
91+
92+
run:
93+
timeout: 3m
94+
95+
linters-settings:
96+
gofumpt:
97+
extra-rules: true
98+
ireturn:
99+
allow:
100+
- anon
101+
- error
102+
- empty
103+
- stdlib
104+
- ^github\.com\/cenkalti\/backoff\/\S+\.BackOff$

.lycheeignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://hub.docker.com/r/thegeeklab/*

.markdownlint.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
default: True
3+
MD013: False
4+
MD041: False
5+
MD004:
6+
style: dash

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.tpl.md
2+
LICENSE

.woodpecker/build-container.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
when:
3+
- event: [pull_request, tag]
4+
- event: [push, manual]
5+
branch:
6+
- ${CI_REPO_DEFAULT_BRANCH}
7+
8+
steps:
9+
- name: dryrun
10+
image: quay.io/thegeeklab/wp-docker-buildx:2
11+
settings:
12+
containerfile: Containerfile.multiarch
13+
dry_run: true
14+
platforms:
15+
- linux/amd64
16+
- linux/arm64
17+
provenance: false
18+
repo: ${CI_REPO}
19+
when:
20+
- event: [pull_request]
21+
22+
publish-dockerhub:
23+
group: container
24+
image: quay.io/thegeeklab/wp-docker-buildx:2
25+
settings:
26+
auto_tag: true
27+
containerfile: Containerfile.multiarch
28+
password:
29+
from_secret: docker_password
30+
platforms:
31+
- linux/amd64
32+
- linux/arm64
33+
provenance: false
34+
repo: ${CI_REPO}
35+
username:
36+
from_secret: docker_username
37+
when:
38+
- event: [tag]
39+
- event: [push, manual]
40+
branch:
41+
- ${CI_REPO_DEFAULT_BRANCH}
42+
43+
publish-quay:
44+
group: container
45+
image: quay.io/thegeeklab/wp-docker-buildx:2
46+
settings:
47+
auto_tag: true
48+
containerfile: Containerfile.multiarch
49+
password:
50+
from_secret: quay_password
51+
platforms:
52+
- linux/amd64
53+
- linux/arm64
54+
provenance: false
55+
registry: quay.io
56+
repo: quay.io/${CI_REPO}
57+
username:
58+
from_secret: quay_username
59+
when:
60+
- event: [tag]
61+
- event: [push, manual]
62+
branch:
63+
- ${CI_REPO_DEFAULT_BRANCH}
64+
65+
depends_on:
66+
- test

.woodpecker/build-package.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
when:
3+
- event: [pull_request, tag]
4+
- event: [push, manual]
5+
branch:
6+
- ${CI_REPO_DEFAULT_BRANCH}
7+
8+
steps:
9+
- name: build
10+
image: docker.io/techknowlogick/xgo:go-1.21.x
11+
commands:
12+
- ln -s $(pwd) /source
13+
- make release
14+
15+
- name: executable
16+
image: quay.io/thegeeklab/alpine-tools
17+
commands:
18+
- $(find dist/ -executable -type f -iname ${CI_REPO_NAME}-linux-amd64) --help
19+
20+
- name: changelog
21+
image: quay.io/thegeeklab/git-sv
22+
commands:
23+
- git sv current-version
24+
- git sv release-notes -t ${CI_COMMIT_TAG:-next} -o CHANGELOG.md
25+
- cat CHANGELOG.md
26+
27+
- name: publish-github
28+
image: docker.io/plugins/github-release
29+
settings:
30+
api_key:
31+
from_secret: github_token
32+
files:
33+
- dist/*
34+
note: CHANGELOG.md
35+
overwrite: true
36+
title: ${CI_COMMIT_TAG}
37+
when:
38+
- event: [tag]
39+
40+
depends_on:
41+
- test

0 commit comments

Comments
 (0)