1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_etebase.git synced 2024-08-16 10:19:52 +02:00

Update Actions and improve linting

This commit is contained in:
L3D 2023-10-22 19:51:16 +02:00
parent ab828d46c1
commit 91ad2e687e
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
7 changed files with 59 additions and 37 deletions

View file

@ -13,11 +13,10 @@ jobs:
- name: 'checkout git repo' - name: 'checkout git repo'
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
lfs: true
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
- name: Run ansible-lint - name: Run ansible-lint
uses: ansible-actions/ansible-lint-action@v0.0.3 uses: ansible-actions/ansible-lint-action@v1.0.1
with: with:
target: "./" target: "./"

View file

@ -1,22 +1,24 @@
--- ---
name: Galaxy release name: Galaxy-NG Roles Import
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on:
push:
branches: ['main']
release: release:
types: ['created'] types: ['created']
jobs: jobs:
build: build:
name: Jinja2 Linting
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps:
- name: 'checkout git repo'
uses: actions/checkout@v4
- name: 'release on galaxy' steps:
uses: robertdebock/galaxy-action@1.2.1 - name: 'Checkout git repo'
uses: actions/checkout@v4
with: with:
galaxy_api_key: ${{ secrets.galaxy_api_key }} submodules: true
git_branch: 'main' fetch-depth: 0
- name: 'Release on galaxy'
uses: ansible-actions/ansible-galaxy-action@v1.0.0
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }

22
.github/workflows/j2lint-check.yml vendored Normal file
View file

@ -0,0 +1,22 @@
---
name: Jinja2 Linting check
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
build:
name: Jinja2 Linting
runs-on: ubuntu-latest
steps:
- name: 'checkout git repo'
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Run j2lint
uses: ansible-actions/j2lint-action@v0.0.1
with:
target: "./"

22
.github/workflows/yamllint-check.yml vendored Normal file
View file

@ -0,0 +1,22 @@
---
name: Yamllint check
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
build:
name: Yamllint
runs-on: ubuntu-latest
steps:
- name: 'checkout git repo'
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Run yamllint
uses: ansible-actions/yamllint-action@v0.0.1
with:
target: "./"

View file

@ -1,23 +0,0 @@
---
name: 'Yamllint GitHub Actions'
# yamllint disable-line rule:truthy
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'checkout git repo'
uses: actions/checkout@v4
- name: 'Yamllint'
uses: karancode/yamllint-github-action@v2.1.1
with:
yamllint_file_or_dir: '.'
yamllint_config_filepath: './.yamllint'

View file

@ -1,4 +1,4 @@
[![Ansible Galaxy](https://ansible.l3d.space/svg/l3d.etebase.svg)](https://galaxy.ansible.com/ui/standalone/roles/roles-ansible/etebase/) [![Ansible Galaxy](https://ansible.l3d.space/svg/l3d.etebase.svg)](https://galaxy.ansible.com/ui/standalone/roles/l3d/etebase/)
[![MIT License](https://ansible.l3d.space/svg/l3d.etebase_license.svg)](LICENSE) [![MIT License](https://ansible.l3d.space/svg/l3d.etebase_license.svg)](LICENSE)
[![Maintainance](https://ansible.l3d.space/svg/l3d.etebase_maintainance.svg)](https://ansible.l3d.space/#l3d.etebase) [![Maintainance](https://ansible.l3d.space/svg/l3d.etebase_maintainance.svg)](https://ansible.l3d.space/#l3d.etebase)

View file

@ -3,7 +3,7 @@
[global] [global]
secret_file = {{ etebase__global_secret_file }} secret_file = {{ etebase__global_secret_file }}
debug = {{ etebase__global_debug | ternary('true', 'false') }} debug = {{ etebase__global_debug | ternary('true', 'false') }}
;Set the paths where data will be stored at ;Set the paths where data will be stored at
static_root = {{ etebase__global_static_root }} static_root = {{ etebase__global_static_root }}
media_root = {{ etebase__global_media_root }} media_root = {{ etebase__global_media_root }}