Skip to content

Commit c686526

Browse files
committed
v0.1.0
0 parents  commit c686526

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1497
-0
lines changed

.github/workflows/default.yml

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Container Build
2+
"on":
3+
workflow_dispatch: null
4+
push:
5+
branches:
6+
- 'main'
7+
- 'dev'
8+
tags:
9+
- 'v*.*.*'
10+
pull_request:
11+
branches:
12+
- 'main'
13+
- 'dev'
14+
jobs:
15+
build_all:
16+
permissions:
17+
contents: write
18+
packages: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Helm - Setup
22+
uses: azure/setup-helm@v3
23+
- name: GitHub - Checkout repository
24+
uses: actions/checkout@v3
25+
with:
26+
fetch-depth: 0
27+
token: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Docker - Set up QEMU
29+
uses: docker/setup-qemu-action@v2
30+
with:
31+
platforms: 'amd64,arm64'
32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v2
34+
- name: GitHub - Login to Container Registry
35+
uses: docker/login-action@v2
36+
with:
37+
registry: ghcr.io
38+
username: ${{ github.repository_owner }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
- name: Docker - Metadata - Alpine
41+
id: alpine
42+
uses: docker/metadata-action@v4
43+
with:
44+
images: |
45+
ghcr.io/daemondude23/abider/alpine
46+
tags: |
47+
type=ref,event=branch
48+
type=semver,pattern=v{{major}}.{{minor}}
49+
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
50+
type=semver,pattern=v{{version}}
51+
- name: Docker = Metadata - Debian
52+
id: debian
53+
uses: docker/metadata-action@v4
54+
with:
55+
images: |
56+
ghcr.io/daemondude23/abider/debian
57+
tags: |
58+
type=ref,event=branch
59+
type=semver,pattern=v{{major}}.{{minor}}
60+
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
61+
type=semver,pattern=v{{version}}
62+
- name: Docker - Build and Push - Alpine
63+
uses: docker/build-push-action@v4
64+
with:
65+
push: true
66+
tags: ${{ steps.alpine.outputs.tags }}
67+
platforms: linux/amd64,linux/arm64
68+
context: ./src/
69+
file: ./src/Dockerfile-alpine
70+
cache-from: type=gha
71+
cache-to: type=gha,mode=max
72+
- name: Docker - Build and Push - Debian
73+
uses: docker/build-push-action@v4
74+
with:
75+
push: true
76+
tags: ${{ steps.debian.outputs.tags }}
77+
platforms: linux/amd64,linux/arm64
78+
context: ./src/
79+
file: ./src/Dockerfile-debian
80+
cache-from: type=gha
81+
cache-to: type=gha,mode=max
82+
- name: GitHub - Create Release (Draft)
83+
uses: softprops/action-gh-release@v1
84+
with:
85+
body_path: ${{ github.workspace }}/CHANGELOG.md
86+
draft: true
87+
prerelease: false
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
- name: Helm - Run chart-releaser
91+
uses: helm/[email protected]
92+
with:
93+
charts_dir: deploy/helm/charts/abider
94+
config: deploy/helm/charts/abider/cr.yaml
95+
env:
96+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
97+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.mypy_cache
2+
.vscode/settings.json
3+
**/__pycache__
4+
**/*.tmp
5+
build/
6+
dist/
7+
examples/output/*
8+
venv/

.pre-commit-config.yaml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
repos:
3+
- hooks:
4+
# - files: ^.*\.yaml$
5+
# id: sort-simple-yaml
6+
- id: check-case-conflict
7+
- id: check-docstring-first
8+
- id: check-executables-have-shebangs
9+
- id: check-merge-conflict
10+
- id: destroyed-symlinks
11+
- id: detect-aws-credentials
12+
- id: detect-private-key
13+
- id: end-of-file-fixer
14+
- id: fix-byte-order-marker
15+
- args:
16+
- '--remove'
17+
id: fix-encoding-pragma
18+
- id: mixed-line-ending
19+
- args:
20+
- '--maxkb=1024'
21+
id: check-added-large-files
22+
- args:
23+
- '--markdown-linebreak-ext=md'
24+
id: trailing-whitespace
25+
- id: check-symlinks
26+
# - args:
27+
# - '--allow-multiple-documents'
28+
# files: ^dev\/.*\.yaml$
29+
# id: check-yaml
30+
# - files: ^dev\/.*\.yaml$
31+
# id: sort-simple-yaml
32+
- args:
33+
- '--maxkb=1024'
34+
id: check-added-large-files
35+
- id: requirements-txt-fixer
36+
- id: check-ast
37+
repo: https://github.com/pre-commit/pre-commit-hooks
38+
rev: v4.4.0
39+
- repo: https://github.com/norwoodj/helm-docs
40+
rev: v1.11.0
41+
hooks:
42+
- id: helm-docs
43+
args:
44+
- --chart-search-root=deploy/helm/charts/abider
45+
# - repo: https://github.com/pre-commit/mirrors-mypy
46+
# rev: v1.0.1
47+
# hooks:
48+
# - id: mypy
49+
# args:
50+
# - --check-untyped-defs
51+
# - --ignore-missing-imports
52+
# - --install-types
53+
# - --non-interactive
54+
# files: src/main.py
55+
- hooks:
56+
- args:
57+
- '--application-directories'
58+
- .:src
59+
- '--py39'
60+
id: reorder-python-imports
61+
repo: https://github.com/asottile/reorder_python_imports
62+
rev: v3.10.0
63+
- hooks:
64+
- args:
65+
- '--line-length=130'
66+
- '--include=''\.pyi?$'''
67+
- '--exclude=\.git|\.__pycache__|\.hg|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist'
68+
id: black
69+
language_version: python3.10
70+
repo: https://github.com/ambv/black
71+
rev: 23.3.0
72+
- repo: https://github.com/adamchainz/blacken-docs
73+
rev: 1.14.0
74+
hooks:
75+
- id: blacken-docs
76+
additional_dependencies:
77+
- black==23.3.0

.vscode/launch.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"configurations": [
3+
{
4+
"connect": {
5+
"host": "localhost",
6+
"port": 5678
7+
},
8+
"justMyCode": true,
9+
"name": "main",
10+
"pathMappings": [
11+
{
12+
"localRoot": "${workspaceFolder}/src/",
13+
"remoteRoot": "."
14+
}
15+
],
16+
"request": "attach",
17+
"subProcess": true,
18+
"type": "python"
19+
}
20+
],
21+
"version": "0.2.0"
22+
}

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**Changelog**
2+
3+
---
4+
5+
# v0.1.0 - July 2 2023
6+
7+
- Initial release.

0 commit comments

Comments
 (0)