Skip to content

Commit cb5f1ba

Browse files
committed
Initial revision
1 parent d3a1cfa commit cb5f1ba

21 files changed

Lines changed: 737 additions & 1 deletion
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
name: Bug report
3+
description: Create a bug report.
4+
title: "[Bug] "
5+
labels:
6+
- bug
7+
assignees:
8+
- thomasleplus
9+
body:
10+
- type: markdown
11+
attributes:
12+
value: |
13+
Thanks for taking the time to fill out this bug report!
14+
- type: checkboxes
15+
attributes:
16+
label: Is there an existing issue for this?
17+
description: Search to see if an issue already exists for the bug you encountered.
18+
options:
19+
- label: I have searched the existing issues
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: Current Behavior
24+
description: A concise description of what you're experiencing.
25+
validations:
26+
required: true
27+
- type: textarea
28+
attributes:
29+
label: Expected Behavior
30+
description: A concise description of what you expected to happen.
31+
validations:
32+
required: true
33+
- type: textarea
34+
attributes:
35+
label: version
36+
description: |
37+
Version where you observed this issue
38+
placeholder: |
39+
vX.Y.Z
40+
render: markdown
41+
validations:
42+
required: true
43+
- type: textarea
44+
id: logs
45+
attributes:
46+
label: Relevant log output
47+
description: |
48+
Copy and paste any relevant log output.
49+
This will be automatically formatted into code, so no need for backticks.
50+
Enable debug logging, either on GitHub Actions, or when running locally.
51+
render: shell
52+
validations:
53+
required: true
54+
- type: textarea
55+
attributes:
56+
label: Steps To Reproduce
57+
description: |
58+
Steps to reproduce the issue.
59+
placeholder: |
60+
1. In this environment...
61+
1. With this config...
62+
1. Run '...'
63+
1. See error...
64+
validations:
65+
required: true
66+
- type: textarea
67+
attributes:
68+
label: Anything else?
69+
description: |
70+
Links? References? Anything that will give us more context about the issue you are encountering!
71+
72+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
73+
validations:
74+
required: false
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Feature request
3+
description: Suggest a new feature for this project.
4+
title: "[Feature] "
5+
labels:
6+
- enhancement
7+
assignees:
8+
- thomasleplus
9+
body:
10+
- type: markdown
11+
attributes:
12+
value: |
13+
Thanks for taking the time to fill out this feature request!
14+
- type: textarea
15+
attributes:
16+
label: Feature description
17+
description: |
18+
A clear and concise description of what the desired feature is and why it would be useful.
19+
render: markdown
20+
validations:
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: Anything else?
25+
description: |
26+
If you think that there are some implementation details to be taken into consideration, or anything that is not obvious from the previous description, please specify it here.
27+
28+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
29+
render: markdown
30+
validations:
31+
required: false
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Question
3+
description: Ask a question.
4+
title: "[Question] "
5+
labels:
6+
- question
7+
assignees:
8+
- thomasleplus
9+
body:
10+
- type: markdown
11+
attributes:
12+
value: |
13+
Thanks for taking the time to fill out this feature request!
14+
- type: textarea
15+
attributes:
16+
label: What is your question?
17+
description: Please include as many details and examples as possible.
18+
render: markdown
19+
validations:
20+
required: true

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "docker"
5+
directory: "/crypt"
6+
schedule:
7+
interval: "daily"
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"

.github/workflows/automerge.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: "Dependabot auto-merge"
3+
on: pull_request
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
dependabot:
11+
runs-on: ubuntu-latest
12+
if: ${{ github.actor == 'dependabot[bot]' }}
13+
steps:
14+
- name: Authenticate CLI with a PAT
15+
env:
16+
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
17+
if: env.RELEASE_TOKEN != ''
18+
run: echo "${RELEASE_TOKEN}" | gh auth login --with-token
19+
- name: Enable auto-merge for Dependabot PRs
20+
run: |
21+
# Checking the PR title is a poor substitute for the actual PR changes
22+
# but as long as this is used only with dependabot PRs,
23+
# it should be safe to assume that the title is not misleading.
24+
regexp='^Bump .* from [0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)? to [0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?( in .*)?$'
25+
if [[ "${PR_TITLE}" =~ $regexp ]]; then
26+
gh pr review --approve "${PR_URL}"
27+
else
28+
echo 'Non-semver upgrade needs manual review'
29+
fi
30+
gh pr merge --auto --squash "${PR_URL}"
31+
env:
32+
PR_TITLE: ${{github.event.pull_request.title}}
33+
PR_URL: ${{github.event.pull_request.html_url}}
34+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: "Dependency Review"
3+
on: [pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
dependency-review:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: "Checkout Repository"
13+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
- name: "Dependency Review"
15+
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Docker
3+
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
- cron: "0 0 * * 0"
9+
workflow_dispatch:
10+
11+
permissions: {}
12+
13+
jobs:
14+
build:
15+
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Set IMAGE
19+
run: echo "IMAGE=${GITHUB_REPOSITORY#*/docker-}" >> "${GITHUB_ENV}"
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
22+
- uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
23+
- uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
24+
id: meta
25+
with:
26+
images: ${{ github.repository_owner }}/${{ env.IMAGE }}
27+
tags: |
28+
type=schedule
29+
type=ref,event=branch
30+
type=ref,event=pr
31+
type=sha
32+
- name: Test the Docker image
33+
working-directory: ${{ env.IMAGE }}
34+
run: docker compose -f docker-compose.test.yml run sut
35+
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
36+
if: github.ref == 'refs/heads/main'
37+
with:
38+
username: ${{ secrets.DOCKERHUB_USERNAME }}
39+
password: ${{ secrets.DOCKERHUB_TOKEN }}
40+
- uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
41+
with:
42+
context: ${{ env.IMAGE }}
43+
platforms: linux/amd64,linux/arm64
44+
pull: true
45+
push: ${{ github.ref == 'refs/heads/main' }}
46+
sbom: true
47+
tags: ${{ steps.meta.outputs.tags }}
48+
labels: ${{ steps.meta.outputs.labels }}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Docker Release
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
permissions: {}
9+
10+
jobs:
11+
release:
12+
if: startsWith(github.ref, 'refs/tags/')
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Set IMAGE
16+
run: echo "IMAGE=${GITHUB_REPOSITORY#*/docker-}" >> "${GITHUB_ENV}"
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
19+
- uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
20+
- uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
21+
id: meta
22+
with:
23+
images: ${{ github.repository_owner }}/${{ env.IMAGE }}
24+
tags: |
25+
type=schedule
26+
type=ref,event=branch
27+
type=ref,event=pr
28+
type=semver,pattern={{version}}
29+
type=semver,pattern={{major}}.{{minor}}
30+
type=semver,pattern={{major}}
31+
type=sha
32+
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
33+
with:
34+
username: ${{ secrets.DOCKERHUB_USERNAME }}
35+
password: ${{ secrets.DOCKERHUB_TOKEN }}
36+
- uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
37+
with:
38+
context: ${{ env.IMAGE }}
39+
platforms: linux/amd64,linux/arm64
40+
pull: true
41+
push: true
42+
sbom: true
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/dockerhub.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Docker Hub
3+
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
- cron: "0 0 * * 0"
9+
workflow_dispatch:
10+
11+
permissions: {}
12+
13+
jobs:
14+
pull:
15+
strategy:
16+
matrix:
17+
platform: ["linux/amd64", "linux/arm64"]
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Set IMAGE
21+
run: echo "IMAGE=${GITHUB_REPOSITORY#*/docker-}" >> "${GITHUB_ENV}"
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
- name: Pull the latest ${{ matrix.platform }} image
24+
run: docker pull --platform "${{ matrix.platform }}" "${GITHUB_REPOSITORY_OWNER}/${IMAGE}"

.github/workflows/linter.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
#################################
3+
#################################
4+
## Super Linter GitHub Actions ##
5+
#################################
6+
#################################
7+
name: Lint Code Base
8+
9+
#
10+
# Documentation:
11+
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
12+
#
13+
14+
#############################
15+
# Start the job on all push #
16+
#############################
17+
on:
18+
push:
19+
pull_request:
20+
schedule:
21+
- cron: "0 0 * * 0"
22+
workflow_dispatch:
23+
24+
permissions: {}
25+
26+
###############
27+
# Set the Job #
28+
###############
29+
jobs:
30+
build:
31+
# Name the Job
32+
name: Lint Code Base
33+
# Set the agent to run on
34+
runs-on: ubuntu-latest
35+
36+
############################################
37+
# Grant status permission for MULTI_STATUS #
38+
############################################
39+
permissions:
40+
contents: read
41+
packages: read
42+
statuses: write
43+
44+
##################
45+
# Load all steps #
46+
##################
47+
steps:
48+
##########################
49+
# Checkout the code base #
50+
##########################
51+
- name: Checkout Code
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
with:
54+
# Full git history is needed to get a proper list of changed
55+
# files within `super-linter`
56+
fetch-depth: 0
57+
58+
################################
59+
# Run Linter against code base #
60+
################################
61+
- name: Lint Code Base
62+
uses: super-linter/super-linter@e1cb86b6e8d119f789513668b4b30bf17fe1efe4 # v7.2.0
63+
env:
64+
VALIDATE_ALL_CODEBASE: true
65+
LINTER_RULES_PATH: .
66+
DEFAULT_BRANCH: main
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)