29 lines
690 B
YAML
29 lines
690 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
|
|
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 }}
|