2023-06-25 09:37:42 +00:00
|
|
|
name: dl
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
2023-06-25 09:48:38 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-06-25 09:37:42 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-06-25 10:11:46 +00:00
|
|
|
- uses: https://github.com/actions/setup-python@v3
|
2023-06-25 09:48:38 +00:00
|
|
|
with:
|
2023-06-25 10:05:59 +00:00
|
|
|
python-version: 3.10
|
2023-06-25 09:49:15 +00:00
|
|
|
- uses: https://github.com/Gr1N/setup-poetry@v8
|
2023-06-25 09:37:42 +00:00
|
|
|
- run: poetry run flake8 .
|
|
|
|
- run: poetry run mypy .
|
|
|
|
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
2023-06-25 09:42:18 +00:00
|
|
|
needs: [lint]
|
2023-06-25 09:37:42 +00:00
|
|
|
steps:
|
2023-06-25 09:42:18 +00:00
|
|
|
- uses: https://github.com/docker/metadata-action@v4
|
2023-06-25 09:37:42 +00:00
|
|
|
with:
|
|
|
|
images: dl/xefir
|
2023-06-25 09:42:18 +00:00
|
|
|
- uses: https://github.com/docker/login-action@v2
|
2023-06-25 09:37:42 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
2023-06-25 09:42:18 +00:00
|
|
|
- uses: https://github.com/docker/build-push-action@v4
|
2023-06-25 09:37:42 +00:00
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|