Skip to content

Commit db1e7e9

Browse files
committed
feat: implement CI
Signed-off-by: Frederic Leger <frederic@webofmars.com>
1 parent 61679c2 commit db1e7e9

19 files changed

Lines changed: 24879 additions & 2 deletions

.github/FUNDING.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# These are supported funding model platforms
2+
3+
github:
4+
- fredleger
5+
- neilime
6+
patreon: webofmars
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG] - short description of the bug"
5+
labels: bug
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
**Expected behavior**
16+
A clear and concise description of what you expected to happen.
17+
18+
**Screenshots**
19+
If applicable, add screenshots to help explain your problem.
20+
21+
**Kubernetes (please complete the following information):**
22+
23+
- Kubernetes version [`kubectl version --short`]
24+
25+
**HRE pod logs**
26+
`kubectl logs hre-xxxxxxx`
27+
28+
**Additional context**
29+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FEATURE] - short description of feature"
5+
labels: enhancement
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
open-pull-requests-limit: 20
7+
schedule:
8+
interval: "weekly"
9+
day: friday
10+
time: "04:00"
11+
groups:
12+
github-actions-dependencies:
13+
patterns:
14+
- "*"
15+
16+
- package-ecosystem: "docker"
17+
directory: "/"
18+
open-pull-requests-limit: 20
19+
schedule:
20+
interval: "weekly"
21+
day: friday
22+
time: "04:00"
23+
groups:
24+
docker-dependencies:
25+
patterns:
26+
- "*"
27+
28+
- package-ecosystem: "helm"
29+
directory: "/codespace-like"
30+
open-pull-requests-limit: 20
31+
schedule:
32+
interval: "weekly"
33+
day: friday
34+
time: "04:00"
35+
groups:
36+
helm-dependencies:
37+
patterns:
38+
- "*"

.github/linters/.jscpd.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"threshold": 5,
3+
"ignore": ["**/codespace-like/**"]
4+
}

.github/linters/.yaml-lint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
extends: default
3+
4+
ignore:
5+
- codespace-like/
6+
7+
rules:
8+
line-length:
9+
max: 170

.github/release-config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
template: |
3+
# What's Changed
4+
$CHANGES
5+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
6+
name-template: "Version $RESOLVED_VERSION"
7+
tag-template: "$RESOLVED_VERSION"
8+
tag-prefix: ""
9+
prerelease-identifier: "rc"
10+
version-resolver:
11+
major:
12+
labels:
13+
- "release-major"
14+
minor:
15+
labels:
16+
- "release-minor"
17+
patch:
18+
labels:
19+
- "release-patch"
20+
default: patch
21+
autolabeler:
22+
- label: "release-major"
23+
title:
24+
- "/^BREAKING CHANGE:/"
25+
- "/^\\w+!:/"
26+
- "/^\\w+\\(.+\\)!:/"
27+
- label: "release-minor"
28+
title:
29+
- "/^feat:/"
30+
- "/^feat\\(.+\\):/"

.github/social-preview.svg

Lines changed: 24454 additions & 0 deletions
Loading

.github/workflows/__shared-ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Shared - Continuous Integration for common tasks
3+
4+
on: # yamllint disable-line rule:truthy
5+
workflow_call:
6+
7+
permissions: {}
8+
9+
jobs:
10+
linter:
11+
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@b17226e57c8ef31f860719766656ebb6df017218 # 0.31.6
12+
permissions:
13+
actions: read
14+
contents: read
15+
statuses: write
16+
security-events: write
17+
with:
18+
# FIXME: Remove useless linters on next super-linter release
19+
linter-env: |
20+
VALIDATE_KUBERNETES_KUBECONFORM=false
21+
22+
tests-charts:
23+
name: Tests - Charts
24+
runs-on: "ubuntu-latest"
25+
permissions:
26+
contents: read
27+
steps:
28+
- name: Test helm charts
29+
uses: hoverkraft-tech/ci-github-container/actions/helm/test-chart@a0bab9151cc074af9f6c8204ab42a48d2d570379 # 0.30.6
30+
with:
31+
helm-repositories: |
32+
bitnami https://charts.bitnami.com/bitnami
33+
jetstack https://charts.jetstack.io
34+
helm-set: |
35+
global.railsSecretKey=\$RAILS_SECRET_KEY
36+
global.signingKey=\$SIGNING_KEY
37+
cert-manager.enabled=true
38+
env:
39+
RAILS_SECRET_KEY: ${{ secrets.RAILS_SECRET_KEY }}
40+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

.github/workflows/greetings.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Greetings
3+
4+
on: # yamllint disable-line rule:truthy
5+
issues:
6+
types: [opened]
7+
pull_request_target:
8+
branches: [main]
9+
10+
permissions: {}
11+
12+
jobs:
13+
greetings:
14+
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@b17226e57c8ef31f860719766656ebb6df017218 # 0.31.6
15+
permissions:
16+
contents: read
17+
issues: write
18+
pull-requests: write

0 commit comments

Comments
 (0)