diff --git a/.ansible-lint b/.ansible-lint index dff231b..23a163f 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,3 +1,4 @@ --- -skip_list: [] \ No newline at end of file +exclude_paths: +- .gitea/ diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 4ad0a59..0000000 --- a/.drone.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -kind: pipeline -type: kubernetes -name: linter - -platform: - os: linux - -steps: -- name: markdown lint - commands: - - markdownlint *.md - image: docker.io/volkerraschek/markdownlint:0.44.0 - resources: - limits: - cpu: 50 - memory: 50M - -- name: email-notification - environment: - PLUGIN_HOST: - from_secret: smtp_host - PLUGIN_USERNAME: - from_secret: smtp_username - PLUGIN_PASSWORD: - from_secret: smtp_password - PLUGIN_FROM: - from_secret: smtp_mail_address - image: docker.io/drillster/drone-email:latest - resources: - limits: - cpu: 50 - memory: 25M - when: - status: - - changed - - failure - -trigger: - event: - exclude: - - tag diff --git a/.gitea/workflows/ansible-linters.yaml b/.gitea/workflows/ansible-linters.yaml new file mode 100644 index 0000000..429d1bd --- /dev/null +++ b/.gitea/workflows/ansible-linters.yaml @@ -0,0 +1,21 @@ +name: Ansible Linter + +on: + pull_request: + types: [ "opened", "reopened", "synchronize" ] + push: + branches: [ '**' ] + tags-ignore: [ '**' ] + +jobs: + ansible-lint: + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ansible-lint + uses: ansible/ansible-lint@v25.2.1 + with: + args: "--config-file .ansible-lint" + setup_python: "true" + requirements_file: "requirements.yml" \ No newline at end of file diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml new file mode 100644 index 0000000..a31bf98 --- /dev/null +++ b/.gitea/workflows/markdown-linters.yaml @@ -0,0 +1,20 @@ +name: Lint Markdown files + +on: + pull_request: + types: [ "opened", "reopened", "synchronize" ] + push: + branches: [ '**' ] + tags-ignore: [ '**' ] + workflow_dispatch: {} + +jobs: + markdown-lint: + container: + image: git.cryptic.systems/volker.raschek/markdownlint:0.44.0 + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v4.2.2 + - name: Lint Markdown files + run: markdownlint --config .markdownlint.yaml .