Skip to content

Commit

Permalink
v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DaemonDude23 committed Jul 2, 2023
0 parents commit c686526
Show file tree
Hide file tree
Showing 41 changed files with 1,497 additions and 0 deletions.
97 changes: 97 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Container Build
"on":
workflow_dispatch: null
push:
branches:
- 'main'
- 'dev'
tags:
- 'v*.*.*'
pull_request:
branches:
- 'main'
- 'dev'
jobs:
build_all:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Helm - Setup
uses: azure/setup-helm@v3
- name: GitHub - Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Docker - Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'amd64,arm64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: GitHub - Login to Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker - Metadata - Alpine
id: alpine
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/daemondude23/abider/alpine
tags: |
type=ref,event=branch
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
type=semver,pattern=v{{version}}
- name: Docker = Metadata - Debian
id: debian
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/daemondude23/abider/debian
tags: |
type=ref,event=branch
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}.{{minor}}.{{patch}}
type=semver,pattern=v{{version}}
- name: Docker - Build and Push - Alpine
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.alpine.outputs.tags }}
platforms: linux/amd64,linux/arm64
context: ./src/
file: ./src/Dockerfile-alpine
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Docker - Build and Push - Debian
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.debian.outputs.tags }}
platforms: linux/amd64,linux/arm64
context: ./src/
file: ./src/Dockerfile-debian
cache-from: type=gha
cache-to: type=gha,mode=max
- name: GitHub - Create Release (Draft)
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}/CHANGELOG.md
draft: true
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Helm - Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: deploy/helm/charts/abider
config: deploy/helm/charts/abider/cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.mypy_cache
.vscode/settings.json
**/__pycache__
**/*.tmp
build/
dist/
examples/output/*
venv/
77 changes: 77 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
repos:
- hooks:
# - files: ^.*\.yaml$
# id: sort-simple-yaml
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: destroyed-symlinks
- id: detect-aws-credentials
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- args:
- '--remove'
id: fix-encoding-pragma
- id: mixed-line-ending
- args:
- '--maxkb=1024'
id: check-added-large-files
- args:
- '--markdown-linebreak-ext=md'
id: trailing-whitespace
- id: check-symlinks
# - args:
# - '--allow-multiple-documents'
# files: ^dev\/.*\.yaml$
# id: check-yaml
# - files: ^dev\/.*\.yaml$
# id: sort-simple-yaml
- args:
- '--maxkb=1024'
id: check-added-large-files
- id: requirements-txt-fixer
- id: check-ast
repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
- repo: https://github.com/norwoodj/helm-docs
rev: v1.11.0
hooks:
- id: helm-docs
args:
- --chart-search-root=deploy/helm/charts/abider
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.0.1
# hooks:
# - id: mypy
# args:
# - --check-untyped-defs
# - --ignore-missing-imports
# - --install-types
# - --non-interactive
# files: src/main.py
- hooks:
- args:
- '--application-directories'
- .:src
- '--py39'
id: reorder-python-imports
repo: https://github.com/asottile/reorder_python_imports
rev: v3.10.0
- hooks:
- args:
- '--line-length=130'
- '--include=''\.pyi?$'''
- '--exclude=\.git|\.__pycache__|\.hg|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist'
id: black
language_version: python3.10
repo: https://github.com/ambv/black
rev: 23.3.0
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.14.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==23.3.0
22 changes: 22 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"configurations": [
{
"connect": {
"host": "localhost",
"port": 5678
},
"justMyCode": true,
"name": "main",
"pathMappings": [
{
"localRoot": "${workspaceFolder}/src/",
"remoteRoot": "."
}
],
"request": "attach",
"subProcess": true,
"type": "python"
}
],
"version": "0.2.0"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**Changelog**

---

# v0.1.0 - July 2 2023

- Initial release.
Loading

0 comments on commit c686526

Please sign in to comment.