From 53371eb51f5a4070f5a1f710a5e27cb2f1e8d367 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 31 Mar 2023 00:13:28 +0200 Subject: [PATCH] Meta definition --- .github/workflows/ansible-linting-check.yml | 23 +++++++ .github/workflows/galaxy.yml | 25 ++++++++ .github/workflows/yamllint.yaml | 23 +++++++ galaxy.yml | 69 +++++++++++++++++++++ 4 files changed, 140 insertions(+) create mode 100644 .github/workflows/ansible-linting-check.yml create mode 100644 .github/workflows/galaxy.yml create mode 100644 .github/workflows/yamllint.yaml create mode 100644 galaxy.yml diff --git a/.github/workflows/ansible-linting-check.yml b/.github/workflows/ansible-linting-check.yml new file mode 100644 index 0000000..150e908 --- /dev/null +++ b/.github/workflows/ansible-linting-check.yml @@ -0,0 +1,23 @@ +--- +name: Ansible Lint check + +# yamllint disable-line rule:truthy +on: + push: + branches: '*' + pull_request: + branches: '*' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: 'checkout git repo' + uses: actions/checkout@v3 + + - name: 'Lint Ansible Playbook' + uses: ansible/ansible-lint-action@v6 + with: + targets: "." diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml new file mode 100644 index 0000000..b292c28 --- /dev/null +++ b/.github/workflows/galaxy.yml @@ -0,0 +1,25 @@ +--- +name: Galaxy release + +# yamllint disable-line rule:truthy +on: + push: + branches: ['main'] + release: + types: ['created'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: 'checkout git repo' + uses: actions/checkout@v3 + with: + lfs: true + submodules: true + + + - name: "Publish Ansible" + uses: ansible/ansible-publish-action@v1.0.0 + with: + api_key: "${{ secrets.GALAXY_API_KEY }}" diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml new file mode 100644 index 0000000..361b111 --- /dev/null +++ b/.github/workflows/yamllint.yaml @@ -0,0 +1,23 @@ +--- +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@v3 + + - name: 'Yamllint' + uses: karancode/yamllint-github-action@v2.1.1 + with: + yamllint_file_or_dir: '.' + yamllint_config_filepath: './.yamllint' diff --git a/galaxy.yml b/galaxy.yml new file mode 100644 index 0000000..4765d8f --- /dev/null +++ b/galaxy.yml @@ -0,0 +1,69 @@ +--- +### REQUIRED +# The namespace of the collection. This can be a company/brand/organization or product namespace under which all +# content lives. May only contain alphanumeric lowercase characters and underscores. Namespaces cannot start with +# underscores or numbers and cannot contain consecutive underscores +namespace: l3d + +# The name of the collection. Has the same character restrictions as 'namespace' +name: git + +# The version of the collection. Must be compatible with semantic versioning +version: 1.0.0 + +# The path to the Markdown (.md) readme file. This path is relative to the root of the collection +readme: README.md + +# A list of the collection's content authors. Can be just the name or in the format 'Full Name (url) +# @nicks:irc/im.site#channel' +authors: + - L3D + + +### OPTIONAL but strongly recommended +# A short summary description of the collection +description: Ansible Collection for installing git server + +# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only +# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file' +license: + - MIT + +# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character +# requirements as 'namespace' and 'name' +tags: + - gitea + - forgejo + - git + - system + - development + - sourcecontrol + - selfhosted + - gitserver + - gogs + - linux + +# Collections that this collection requires to be installed for it to be usable. The key of the dict is the +# collection label 'namespace.name'. The value is a version range +# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version +# range specifiers can be set and are separated by ',' +dependencies: {} + +# The URL of the originating SCM repository +repository: https://github.com/roles-ansible/ansible_collection_git.git + +# The URL to the homepage of the collection/project +homepage: https://ansible.l3d.space/ + +# A list of file glob-like patterns used to filter any files or directories that should not be included in the build +# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This +# uses 'fnmatch' to match the files or directories. Some directories and files like 'galaxy.yml', '*.pyc', '*.retry', +# and '.git' are always filtered. Mutually exclusive with 'manifest' +build_ignore: [] + +# A dict controlling use of manifest directives used in building the collection artifact. The key 'directives' is a +# list of MANIFEST.in style +# L(directives,https://packaging.python.org/en/latest/guides/using-manifest-in/#manifest-in-commands). The key +# 'omit_default_directives' is a boolean that controls whether the default directives are used. Mutually exclusive +# with 'build_ignore' +manifest: null