This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1-prepare-initial-release' into 'main'
Prepare initial release Closes #1 See merge request hifis/ansible/rsd!1
- Loading branch information
Showing
17 changed files
with
2,071 additions
and
87 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,22 @@ | ||
# SPDX-FileCopyrightText: 2022 Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: 2022 Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: "Release new version on Ansible Galaxy" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
release: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "checkout" | ||
uses: "actions/checkout@v2" | ||
- name: "galaxy" | ||
uses: "robertdebock/[email protected]" | ||
with: | ||
galaxy_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,164 @@ | ||
# SPDX-FileCopyrightText: 2022 Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: 2022 Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
.idea/ | ||
|
||
### VirtualEnv template | ||
# Virtualenv | ||
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/ | ||
.Python | ||
[Bb]in | ||
[Ii]nclude | ||
[Ll]ib | ||
[Ll]ib64 | ||
[Ll]ocal | ||
[Ss]cripts | ||
pyvenv.cfg | ||
.venv | ||
pip-selfcheck.json | ||
|
||
### Ansible template | ||
*.retry | ||
|
||
### Python template | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
cover/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
.pybuilder/ | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
# For a library or package, you might want to ignore these files since the code is | ||
# intended to run in multiple environments; otherwise, check them in: | ||
# .python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
# Cython debug symbols | ||
cython_debug/ | ||
|
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,68 @@ | ||
# SPDX-FileCopyrightText: 2022 Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: 2022 Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
stages: | ||
- "lint" | ||
- "test" | ||
|
||
variables: | ||
# tell Python-based tools to force color output | ||
PY_COLORS: '1' | ||
ANSIBLE_FORCE_COLOR: '1' | ||
|
||
.before_script_template: &before_script | ||
# Ansible refuses to read from a world-writeable folder | ||
- "chmod 0750 $CI_PROJECT_DIR" | ||
- "pip install -U pip" | ||
- "pip install --ignore-installed poetry" | ||
- "poetry install" | ||
|
||
include: | ||
- project: "hifis/templates/gitlab-ci" | ||
file: "/templates/reuse-compliance.yml" | ||
|
||
validate: | ||
stage: "lint" | ||
image: "python:3.8" | ||
before_script: | ||
- *before_script | ||
script: | ||
# - "poetry run molecule lint" | ||
- "poetry run ansible-lint -v --force-color --offline" | ||
- "poetry run yamllint --strict --format colored ." | ||
|
||
#test: | ||
# extends: ".moleculetest" | ||
# parallel: | ||
# matrix: | ||
# - MOLECULE_DISTRO: | ||
# - "ubuntu2004" | ||
# - "debian10" | ||
# | ||
#.moleculetest: | ||
# stage: "test" | ||
# image: "docker:latest" | ||
# variables: | ||
# POETRY_VIRTUALENVS_PATH: "$CI_PROJECT_DIR/.cache/venv" | ||
# POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry" | ||
# PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" | ||
# services: | ||
# - "docker:dind" | ||
# before_script: | ||
# - "apk update && apk add --no-cache | ||
# python3-dev py3-pip gcc git curl build-base | ||
# autoconf automake py3-cryptography linux-headers | ||
# musl-dev libffi-dev openssl-dev openssh cargo" | ||
# - "docker info" | ||
# - "python3 --version" | ||
# - *before_script | ||
# script: | ||
# - "poetry run molecule test" | ||
# cache: | ||
# paths: | ||
# - ".cache" | ||
|
||
... |
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,46 @@ | ||
# SPDX-FileCopyrightText: 2022 Helmholtz Centre for Environmental Research (UFZ) | ||
# SPDX-FileCopyrightText: 2022 Helmholtz-Zentrum Dresden - Rossendorf (HZDR) | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
--- | ||
# Based on ansible-lint config | ||
extends: "default" | ||
|
||
ignore: | | ||
.cache/ | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: "error" | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: "error" | ||
colons: | ||
max-spaces-after: -1 | ||
level: "error" | ||
commas: | ||
max-spaces-after: -1 | ||
level: "error" | ||
comments: "disable" | ||
comments-indentation: "disable" | ||
document-start: "disable" | ||
empty-lines: | ||
max: 3 | ||
level: "error" | ||
hyphens: | ||
level: "error" | ||
indentation: "disable" | ||
key-duplicates: "enable" | ||
line-length: "disable" | ||
new-line-at-end-of-file: "disable" | ||
new-lines: | ||
type: "unix" | ||
quoted-strings: | ||
quote-type: "any" | ||
required: True | ||
extra-required: [] | ||
extra-allowed: [] | ||
trailing-spaces: "disable" | ||
truthy: "disable" |
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: 2022 Helmholtz Centre for Environmental Research (UFZ) | ||
SPDX-FileCopyrightText: 2022 Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
Group your changes into these categories: | ||
|
||
`Added`, `Changed`, `Deprecated`, `Removed`, `Fixed`, `Security`. | ||
|
||
## [0.1.0](https://gitlab.com/hifis/ansible/rsd/-/releases/v0.1.0) - 2022-04-06 | ||
|
||
### Added | ||
Initial release of the Ansible Research Software Directory (RSD) Role. |
Oops, something went wrong.