dl/.gitea/workflows/dl.yml
Michel Roux 1452f4240d
Some checks reported warnings
dl / lint (push) Has been cancelled
dl / docker (push) Has been cancelled
Fix runner
2023-06-25 11:42:18 +02:00

30 lines
765 B
YAML

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
needs: [lint]
steps:
- uses: https://github.com/docker/metadata-action@v4
with:
images: dl/xefir
- uses: https://github.com/docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: https://github.com/docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}