switch to gitea actions
Some checks failed
dl / docker (push) Failing after 47s
dl / lint (push) Has been cancelled

This commit is contained in:
Michel Roux 2023-06-25 11:37:42 +02:00
parent 1f4c825be8
commit 6f8a168b86
2 changed files with 28 additions and 22 deletions

View File

@ -1,22 +0,0 @@
kind: pipeline
name: default
type: docker
steps:
- name: lint
image: python:3.10
commands:
- pip install poetry
- poetry install
- poetry run flake8 .
- poetry run mypy .
- name: docker
image: plugins/docker
settings:
repo: xefir/dl
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password

28
.gitea/workflows/dl.yml Normal file
View File

@ -0,0 +1,28 @@
name: dl
on: [push]
jobs:
lint:
runs-on: python:3.10
steps:
- uses: actions/checkout@v3
- run: pip install poetry
- run: poetry install
- run: poetry run flake8 .
- run: poetry run mypy .
docker:
runs-on: ubuntu-latest
steps:
- uses: docker/metadata-action@v4
with:
images: dl/xefir
- uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}