From b0d10fb992748b31d7ff09c5fc8c63c7ab0f2fbb Mon Sep 17 00:00:00 2001 From: ytshih Date: Mon, 2 Dec 2024 10:54:41 +0000 Subject: [PATCH] Feat: add gitea ci --- .gitea/workflows/lint.yml | 17 +++++++++++++++++ playbook.yml => playbooks/install.yml | 0 2 files changed, 17 insertions(+) create mode 100644 .gitea/workflows/lint.yml rename playbook.yml => playbooks/install.yml (100%) diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..b89fcbd --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Ansible Playbook lint +on: [push] + +jobs: + ansible-lint: + runs-on: imgbuilder + container: + image: gitea.konchin.com/system/ansible-image + credentials: + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Ansible Lint + run: | + ansible-lint roles/ playbooks/ diff --git a/playbook.yml b/playbooks/install.yml similarity index 100% rename from playbook.yml rename to playbooks/install.yml