diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..416b72c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +--- +version: 2 +updates: + - package-ecosystem: docker + directory: '/' + schedule: + interval: daily + open-pull-requests-limit: 10 + - package-ecosystem: npm + directory: '/' + schedule: + interval: daily + open-pull-requests-limit: 10 + labels: + - 'type: dependencies' + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'daily' diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..ff84d72 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,32 @@ +--- +name-template: 'v$RESOLVED_VERSION 🌈' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bugfix' + - 'bug' + - title: '🧰 Maintenance' + label: 'chore' +change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch +template: | + ## Changes + + $CHANGES diff --git a/.github/settings.yml b/.github/settings.yml index 2fb2404..89e718b 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -4,5 +4,5 @@ # repository: description: Configure mounts - homepage: https://buluma.co.ke/ + homepage: https://buluma.github.io/ topics: mount, ansible, molecule, tox, playbook, hacktoberfest diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml index bfce1bf..7699945 100644 --- a/.github/workflows/galaxy.yml +++ b/.github/workflows/galaxy.yml @@ -13,6 +13,6 @@ jobs: runs-on: ubuntu-20.04 steps: - name: galaxy - uses: buluma/galaxy-action@v1.0.1 + uses: buluma/galaxy-action@1.1.0 with: galaxy_api_key: ${{ secrets.galaxy_api_key }} diff --git a/.github/workflows/gitlab_trigger.yml b/.github/workflows/gitlab_trigger.yml new file mode 100644 index 0000000..9f9d918 --- /dev/null +++ b/.github/workflows/gitlab_trigger.yml @@ -0,0 +1,20 @@ +--- +name: Mirror and run GitLab CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.4.0 + - name: Mirror + trigger CI + uses: SvanBoxel/gitlab-mirror-and-ci-action@master + with: + args: "buluma/ansible-role-mount" + env: + GITLAB_HOSTNAME: "gitlab.com" + GITLAB_USERNAME: "buluma" + GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + GITLAB_PROJECT_ID: "33320879" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index bb64794..313348e 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -7,7 +7,9 @@ name: Ansible Molecule on: push: - tags_ignore: + branches: + - '**' + tags-ignore: - '*' pull_request: schedule: @@ -18,7 +20,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v2.4.0 with: path: "${{ github.repository }}" - name: molecule @@ -33,25 +35,29 @@ jobs: fail-fast: false matrix: config: - - image: "alpine" + - image: "alpine-openrc" tag: "latest" - - image: "debian" + - image: "debian-systemd" + tag: "latest" + - image: "debian-systemd" tag: "bookworm" - - image: "fedora" + - image: "enterpriselinux" + tag: "latest" + - image: "fedora-systemd" tag: "34" - - image: "fedora" + - image: "fedora-systemd" tag: "latest" - - image: "fedora" + - image: "fedora-systemd" tag: "rawhide" - # - image: "opensuse" # TODO Test Opensuse - # tag: "latest" - - image: "ubuntu" + - image: "opensuse" + tag: "latest" + - image: "docker-ubuntu-systemd" tag: "latest" - - image: "ubuntu" + - image: "docker-ubuntu-systemd" tag: "bionic" steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v2.4.0 with: path: "${{ github.repository }}" - name: disable apparmor for mysql diff --git a/.github/workflows/release_drafter.yml b/.github/workflows/release_drafter.yml new file mode 100644 index 0000000..8d850fe --- /dev/null +++ b/.github/workflows/release_drafter.yml @@ -0,0 +1,27 @@ +--- +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - main + - testing + # pull_request event is required only for autolabeler + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [opened, reopened, synchronize] + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + # with: + # config-name: my-config.yml + # disable-autolabeler: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/requirements2png.yml b/.github/workflows/requirements2png.yml index f74ad1f..bdb0174 100644 --- a/.github/workflows/requirements2png.yml +++ b/.github/workflows/requirements2png.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v2.4.0 with: path: ${{ github.repository }} - name: create png diff --git a/.github/workflows/todo.yml b/.github/workflows/todo.yml index 3e6e417..d944733 100644 --- a/.github/workflows/todo.yml +++ b/.github/workflows/todo.yml @@ -12,9 +12,9 @@ jobs: build: runs-on: "ubuntu-20.04" steps: - - uses: "actions/checkout@master" + - uses: "actions/checkout@v2.4.0" - name: "TODO to Issue" - uses: "alstr/todo-to-issue-action@v2.3" + uses: "alstr/todo-to-issue-action@v4.6" id: "todo" with: TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fb3d4bd..8ed39fe 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,9 +16,56 @@ molecule: retry: 1 parallel: matrix: - - image: "amazonlinux" + - image: "alpine-openrc" tag: "latest" + - image: "debian-systemd" + tag: "latest" + - image: "debian-systemd" + tag: "bookworm" + - image: "enterpriselinux" + tag: "latest" + - image: "fedora-systemd" + tag: "34" + - image: "fedora-systemd" + tag: "latest" + - image: "fedora-systemd" + tag: "rawhide" + - image: "opensuse" + tag: "latest" + - image: "docker-ubuntu-systemd" + tag: "latest" + - image: "docker-ubuntu-systemd" + tag: "bionic" + +testing: + script: + - image=${image} tag=${tag} molecule test + rules: + - if: $CI_COMMIT_REF_NAME == "testing" + retry: 1 + parallel: + matrix: + - image: "alpine-openrc" + tag: "latest" + - image: "debian-systemd" + tag: "latest" + - image: "debian-systemd" + tag: "bookworm" + - image: "enterpriselinux" + tag: "latest" + - image: "fedora-systemd" + tag: "34" + - image: "fedora-systemd" + tag: "latest" + - image: "fedora-systemd" + tag: "rawhide" + - image: "opensuse" + tag: "latest" + - image: "docker-ubuntu-systemd" + tag: "latest" + - image: "docker-ubuntu-systemd" + tag: "bionic" galaxy: script: - - ansible-galaxy role info ${CI_PROJECT_NAMESPACE}.mount + - ansible-galaxy role info buluma.mount diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 79dd235..d920e6b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -71,4 +71,4 @@ In the comment-box, you can [refer to the issue number](https://help.github.com/ Now I'll get a message that you've added some code. Thank you, really. -CI starts to test your changes. You can follow the progress on Travis. +CI starts to test your changes. You can follow the progress on GitHub. diff --git a/LICENSE b/LICENSE index 33a321e..915ea54 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ Apache License - Version 2.0, January 2004 + Version 2.0, 02 2022 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION diff --git a/README.md b/README.md index 47a2e23..bec60bf 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Configure mounts |GitHub|GitLab|Quality|Downloads|Version| |------|------|-------|---------|-------| -|[![github](https://github.com/buluma/ansible-role-mount/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-mount/actions)|[![gitlab](https://gitlab.com/buluma/ansible-role-mount/badges/main/pipeline.svg)](https://gitlab.com/buluma/ansible-role-mount)|[![Ansible Quality Score](https://img.shields.io/ansible/quality/57860)](https://galaxy.ansible.com/buluma/mount)|[![Ansible Role](https://img.shields.io/ansible/role/d/57860)](https://galaxy.ansible.com/buluma/mount)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-mount.svg)](https://github.com/buluma/ansible-role-mount/releases/)| +|[![github](https://github.com/buluma/ansible-role-mount/workflows/Ansible%20Molecule/badge.svg)](https://github.com/buluma/ansible-role-mount/actions)|[![gitlab](https://gitlab.com/buluma/ansible-role-mount/badges/main/pipeline.svg)](https://gitlab.com/buluma/ansible-role-mount)|[![quality](https://img.shields.io/ansible/quality/57860)](https://galaxy.ansible.com/buluma/mount)|[![downloads](https://img.shields.io/ansible/role/d/57860)](https://galaxy.ansible.com/buluma/mount)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-mount.svg)](https://github.com/buluma/ansible-role-mount/releases/)| ## [Example Playbook](#example-playbook) @@ -115,4 +115,4 @@ Apache-2.0 ## [Author Information](#author-information) -[Michael Buluma](https://buluma.co.ke/) +[Michael Buluma](https://buluma.github.io/)