🎉 First commit!
Some checks failed
ci / docker (push) Failing after 37s
Python formatting PEP8 / Python-PEP8 (push) Failing after 17s

This commit is contained in:
Finn Christiansen 2024-06-26 19:52:11 +02:00
commit 99c2c62831
13 changed files with 280 additions and 0 deletions

View file

@ -0,0 +1,38 @@
name: ci
on:
push:
branches:
- "main"
jobs:
docker:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker for QEMU
uses: https://github.com/papodaca/install-docker-action@main
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: code.f2n.me
username: ${{ secrets.MY_FORGEJO_USERNAME }}
password: ${{ secrets.MY_FORGEJO_TOKEN }}
- name: Build and push to local registry
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: code.f2n.me/finn/matrix-bot-invitation-mailer:latest
- name: Inspect
run: |
docker buildx imagetools inspect code.f2n.me/finn/matrix-bot-invitation-mailer:latest

View file

@ -0,0 +1,21 @@
name: Python formatting PEP8
run-name: ${{ forgejo.actor }} is running PEP8 check
on: [push]
jobs:
Python-PEP8:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
apt-get update
apt-get install -y python3-pip
pip install flake8
- name: Run checking
run: |
flake8 --ignore=E501 --extend-exclude bin,lib .