Initial commit

This commit is contained in:
2021-12-23 17:45:21 +00:00
commit 5cf890d3ae
14 changed files with 1273 additions and 0 deletions

5
.github/renovate.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}

32
.github/workflows/build-container.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Build Container
"on":
push:
branches:
- main
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GHCR
uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/ohayodash:${{ github.ref_name }}
ghcr.io/${{ github.repository_owner }}/ohayodash:latest

21
.github/workflows/lint.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Lint
'on':
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: wemake-python-styleguide
uses: wemake-services/wemake-python-styleguide@0.16.0

27
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,27 @@
---
name: Release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install -r requirements-dev.txt
- name: Build Assets
run: python setup.py sdist bdist_wheel
- name: Release
uses: softprops/action-gh-release@v1
with:
name: "Version ${{ github.ref_name }}"
generate_release_notes: true
files: |
dist/*