From 6f8a168b868be1b7845d5baf93972ae5cdbd5a6a Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sun, 25 Jun 2023 11:37:42 +0200 Subject: [PATCH] switch to gitea actions --- .drone.yml | 22 ---------------------- .gitea/workflows/dl.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 22 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/dl.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 89144af..0000000 --- a/.drone.yml +++ /dev/null @@ -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 diff --git a/.gitea/workflows/dl.yml b/.gitea/workflows/dl.yml new file mode 100644 index 0000000..61e4636 --- /dev/null +++ b/.gitea/workflows/dl.yml @@ -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 }}