-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #198 from hifis-net/release-version-4.0.0
Release version 4.0.0
- Loading branch information
Showing
77 changed files
with
2,317 additions
and
1,634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
skip_list: | ||
- 'var-naming[no-role-prefix]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
unattended_upgrades: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "roles/unattended_upgrades/**" | ||
- "molecule/unattended_upgrades/**" | ||
- ".github/workflows/unattended_upgrades.yml" | ||
zammad: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- "roles/zammad/**" | ||
- "molecule/zammad/**" | ||
- ".github/workflows/zammad.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
name: "Test importing collection" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "main" | ||
|
||
jobs: | ||
import-galaxy: | ||
permissions: | ||
contents: "read" | ||
name: "Import collection with Galaxy importer" | ||
uses: "ansible-community/github-action-test-galaxy-import/.github/workflows/test-galaxy-import.yml@main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
name: "Pull Request Labeler" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- "labeled" | ||
- "unlabeled" | ||
- "opened" | ||
- "edited" | ||
- "synchronize" | ||
|
||
jobs: | ||
labeler: | ||
runs-on: "ubuntu-22.04" | ||
permissions: | ||
contents: "read" | ||
pull-requests: "write" | ||
steps: | ||
- name: "Check out the codebase." | ||
uses: "actions/checkout@v4" | ||
|
||
- uses: "actions/labeler@v5.0.0" | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
name: "Ansible Lint" | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'roles/**' | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- "v*.*.*" | ||
paths: | ||
- 'roles/**' | ||
|
||
env: | ||
PY_COLORS: 1 | ||
ANSIBLE_FORCE_COLOR: 1 | ||
|
||
jobs: | ||
|
||
ansible-lint: | ||
name: "Ansible Lint" | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "Check out the codebase." | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Lint code." | ||
uses: "ansible/ansible-lint@v24.2.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
name: "Release new version on Ansible Galaxy" | ||
|
||
on: | ||
release: | ||
types: | ||
- "released" | ||
|
||
jobs: | ||
|
||
release: | ||
name: "Release new version on Ansible Galaxy" | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Deploy the collection" | ||
uses: "artis3n/ansible_galaxy_collection@v2.10.1" | ||
with: | ||
api_key: "${{ secrets.galaxy_api_key }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
name: "Check compliance with the RUSE specification" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
reuse-lint: | ||
name: "REUSE compliance check" | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "Check out the codebase." | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "REUSE lint" | ||
uses: "fsfe/reuse-action@v3.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
name: "hifis.zammad" | ||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/zammad.yml' | ||
- 'roles/zammad/**' | ||
- 'molecule/zammad/**' | ||
- 'Pipfile' | ||
- 'Pipfile.lock' | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- "v*.*.*" | ||
paths: | ||
- '.github/workflows/zammad.yml' | ||
- 'roles/zammad/**' | ||
- 'molecule/zammad/**' | ||
- 'Pipfile' | ||
- 'Pipfile.lock' | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
|
||
test: | ||
name: "Run Molecule tests." | ||
runs-on: "ubuntu-22.04" | ||
env: | ||
PY_COLORS: 1 | ||
ANSIBLE_FORCE_COLOR: 1 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- "ghcr.io/hifis-net/ubuntu-systemd:22.04" | ||
- "ghcr.io/hifis-net/ubuntu-systemd:20.04" | ||
|
||
steps: | ||
- name: "Check out the codebase." | ||
uses: "actions/checkout@v4" | ||
with: | ||
path: "ansible_collections/hifis/toolkit" | ||
|
||
- name: "Prepare the job environment." | ||
uses: "./ansible_collections/hifis/toolkit/.github/workflows/prepare-action" | ||
|
||
# https://github.com/ansible/molecule/issues/3806 | ||
- name: "Help molecule to find the dependencies" | ||
run: | | ||
mkdir -p /home/runner/.ansible | ||
ln -s /home/runner/work/ansible-role-unattended-upgrades/ansible-role-unattended-upgrades/ansible_collections/hifis/toolkit/roles \ | ||
/home/runner/.ansible/roles | ||
- name: "Install modern podman" | ||
run: | | ||
sudo mkdir -p /etc/apt/keyrings | ||
curl -fsSL https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/Release.key \ | ||
| gpg --dearmor \ | ||
| sudo tee /etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg > /dev/null | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]\ | ||
https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_$(lsb_release -rs)/ /" \ | ||
| sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list > /dev/null | ||
sudo apt-get update -qq | ||
sudo apt-get -qq -y install podman | ||
- name: "Run Molecule tests." | ||
run: "XDG_RUNTIME_DIR=/run/user/$UID pipenv run molecule test -s zammad" | ||
env: | ||
MOLECULE_IMAGE: "${{ matrix.image }}" | ||
working-directory: "ansible_collections/hifis/toolkit" |
Oops, something went wrong.