diff --git a/.github/renovate.json b/.github/renovate.json index 957a056..00726d7 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -3,17 +3,20 @@ "config:base", ":semanticCommits", ":semanticCommitType(deps)", - ":automergePatch" + ":automergeMinor" ], - "regexManagers": [{ - "fileMatch": [ - "defaults/main.yml" - ], - "matchStrings": [ - "# renovate: datasource=(?\\S+) depName=(?\\S+)( versioning=(?.*?))?\\n.*?_version: (?.*)\\s" - ] - }], - "packageRules": [{ + "regexManagers": [ + { + "fileMatch": [ + "defaults/main.yml" + ], + "matchStrings": [ + "# renovate: datasource=(?\\S+) depName=(?\\S+)( versioning=(?.*?))?\\n.*?_version: (?.*)\\s" + ] + } + ], + "packageRules": [ + { "description": "Strip v prefix from versions", "groupName": "version prefix", "matchDatasources": [ @@ -23,44 +26,32 @@ "extractVersion": "^v(?.*)$" }, { - "description": "Semantic commits for major updates", - "groupName": "major updates", - "matchDatasources": [ - "github-releases", - "github-tags", - "galaxy-collection" - ], + "description": "Semantic commits for major versions", + "groupName": "major versions", "matchUpdateTypes": [ "major" ], + "semanticCommitType": "deps", "semanticCommitScope": "major", "automerge": false }, { - "description": "Semantic commits for minor updates", - "groupName": "minor updates", - "matchDatasources": [ - "github-releases", - "github-tags", - "galaxy-collection" - ], + "description": "Semantic commits for minor versions", + "groupName": "minor versions", "matchUpdateTypes": [ "minor" ], + "semanticCommitType": "deps", "semanticCommitScope": "minor", - "automerge": false + "automerge": true }, { - "description": "Semantic commits for patch updates", - "groupName": "patch updates", - "matchDatasources": [ - "github-releases", - "github-tags", - "galaxy-collection" - ], + "description": "Semantic commits for patch versions", + "groupName": "patch versions", "matchUpdateTypes": [ "patch" ], + "semanticCommitType": "deps", "semanticCommitScope": "patch", "automerge": true } @@ -68,4 +59,4 @@ "labels": [ "renovate" ] -} \ No newline at end of file +} diff --git a/.github/settings.yml b/.github/settings.yml index ed5654c..8ebf206 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -6,7 +6,6 @@ repository: private: false has_issues: true - has_projects: false has_wiki: false has_downloads: false @@ -16,6 +15,12 @@ repository: allow_merge_commit: true allow_rebase_merge: true + allow_update_branch: true + allow_auto_merge: true + delete_branch_on_merge: true + enable_automated_security_fixes: true + enable_vulnerability_alerts: true + labels: - name: bug color: d73a4a @@ -54,12 +59,19 @@ labels: branches: - name: master protection: + required_pull_request_reviews: null required_status_checks: strict: true - contexts: [] + contexts: + - testing enforce_admins: false restrictions: + apps: + - renovate users: [] - teams: [] + teams: + - admins + - bots + - members ... diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index 4bce4dc..b7aaa15 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -13,6 +13,8 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v3 + with: + token: ${{ secrets.BOT_ACCESS_TOKEN }} - name: Generate readme uses: actionhippie/ansible-doctor@v1 @@ -26,7 +28,7 @@ jobs: author_name: GitHub Actions author_email: github@webhippie.de add: README.md - message: automated readme update [skip ci] + message: "docs: automated readme update [skip ci]" push: true commit: --signoff diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d5aacb0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +--- +name: release + +"on": + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Release please + uses: google-github-actions/release-please-action@v3 + with: + release-type: simple + package-name: rclone + skip-github-release: true + +... diff --git a/meta/main.yml b/meta/main.yml index 8bd1112..a07e7e2 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -23,12 +23,13 @@ galaxy_info: author: Thomas Boerger description: Ansible role to install and configure rclone backup solution license: Apache-2.0 - min_ansible_version: 2.10 + min_ansible_version: "2.10" platforms: - name: Ubuntu versions: - bionic - focal + - jammy galaxy_tags: - backup - s3 diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 6edbb64..c5c1a80 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -11,32 +11,30 @@ driver: name: docker platforms: + - name: rclone-ubuntu-22 + image: geerlingguy/docker-ubuntu2204-ansible:latest + hostname: ubuntu + privileged: True + pre_build_image: True + cgroupns_mode: host + volumes: + - /sys/fs/cgroup:/sys/fs/cgroup:ro - name: rclone-ubuntu-20 - image: mpaivabarbosa/molecule-systemd-ubuntu:20.04 + image: geerlingguy/docker-ubuntu2004-ansible:latest hostname: ubuntu privileged: True pre_build_image: True - override_command: False - tmpfs: - - /run - - /tmp + cgroupns_mode: host volumes: - /sys/fs/cgroup:/sys/fs/cgroup:ro - environment: - container: docker - name: rclone-ubuntu-18 - image: mpaivabarbosa/molecule-systemd-ubuntu:18.04 + image: geerlingguy/docker-ubuntu1804-ansible:latest hostname: ubuntu privileged: True pre_build_image: True - override_command: False - tmpfs: - - /run - - /tmp + cgroupns_mode: host volumes: - /sys/fs/cgroup:/sys/fs/cgroup:ro - environment: - container: docker provisioner: name: ansible diff --git a/molecule/default/tests/test_default.py b/molecule/default/tests/test_default.py index e0ffff8..8d14630 100644 --- a/molecule/default/tests/test_default.py +++ b/molecule/default/tests/test_default.py @@ -6,5 +6,5 @@ ).get_hosts("all") -def test_dummy(host): - assert True +def test_executable(host): + assert host.file("/usr/bin/rclone").is_file diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..3eefcb9 --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +1.0.0