Compare commits

..

No commits in common. "v2.3.0" and "v2.2.0" have entirely different histories.

6 changed files with 1306 additions and 130 deletions

View File

@ -6,9 +6,13 @@
{{ range .CommitGroups -}} {{ range .CommitGroups -}}
### {{ .Title }} ### {{ .Title }}
{{ $subjects := list }}
{{ range .Commits -}} {{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ (regexReplaceAll "(Co-\\w*-by.*)" .Subject "") | trim }} {{ if not (has .Subject $subjects) -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ $subjects = append $subjects .Subject -}}
{{ end }} {{ end }}
{{- end }}
{{- end -}} {{- end -}}
{{- if .NoteGroups -}} {{- if .NoteGroups -}}

View File

@ -168,11 +168,11 @@ local PipelineNotifications = {
steps: [ steps: [
{ {
name: 'matrix', name: 'matrix',
image: 'thegeeklab/drone-matrix', image: 'plugins/matrix',
settings: { settings: {
homeserver: { from_secret: 'matrix_homeserver' }, homeserver: { from_secret: 'matrix_homeserver' },
roomid: { from_secret: 'matrix_roomid' }, roomid: { from_secret: 'matrix_roomid' },
template: 'Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}', template: 'Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}',
username: { from_secret: 'matrix_username' }, username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' }, password: { from_secret: 'matrix_password' },
}, },

View File

@ -7,19 +7,19 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: flake8 - name: flake8
image: python:3.9 image: python:3.9
commands: commands:
- pip install -r dev-requirements.txt -qq - pip install -r dev-requirements.txt -qq
- flake8 - flake8
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
--- ---
kind: pipeline kind: pipeline
@ -30,58 +30,58 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: python36-pytest - name: python36-pytest
image: python:3.6 image: python:3.6
commands: commands:
- pip install -r dev-requirements.txt -qq - pip install -r dev-requirements.txt -qq
- pip install -r test/unit/requirements.txt -qq - pip install -r test/unit/requirements.txt -qq
- python -m pytest --cov --cov-append --no-cov-on-fail - python -m pytest --cov --cov-append --no-cov-on-fail
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
- clone - clone
- name: python37-pytest - name: python37-pytest
image: python:3.7 image: python:3.7
commands: commands:
- pip install -r dev-requirements.txt -qq - pip install -r dev-requirements.txt -qq
- pip install -r test/unit/requirements.txt -qq - pip install -r test/unit/requirements.txt -qq
- python -m pytest --cov --cov-append --no-cov-on-fail - python -m pytest --cov --cov-append --no-cov-on-fail
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
- clone - clone
- name: python38-pytest - name: python38-pytest
image: python:3.8 image: python:3.8
commands: commands:
- pip install -r dev-requirements.txt -qq - pip install -r dev-requirements.txt -qq
- pip install -r test/unit/requirements.txt -qq - pip install -r test/unit/requirements.txt -qq
- python -m pytest --cov --cov-append --no-cov-on-fail - python -m pytest --cov --cov-append --no-cov-on-fail
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
- clone - clone
- name: python39-pytest - name: python39-pytest
image: python:3.9 image: python:3.9
commands: commands:
- pip install -r dev-requirements.txt -qq - pip install -r dev-requirements.txt -qq
- pip install -r test/unit/requirements.txt -qq - pip install -r test/unit/requirements.txt -qq
- python -m pytest --cov --cov-append --no-cov-on-fail - python -m pytest --cov --cov-append --no-cov-on-fail
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
depends_on: depends_on:
- clone - clone
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
depends_on: depends_on:
- lint - lint
--- ---
kind: pipeline kind: pipeline
@ -92,55 +92,55 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: build - name: build
image: python:3.9 image: python:3.9
commands: commands:
- GALAXY_VERSION=${DRONE_TAG##v} - GALAXY_VERSION=${DRONE_TAG##v}
- "sed -i 's/version: 0.0.0/version: '\"$${GALAXY_VERSION:-0.0.0}\"'/g' galaxy.yml" - "sed -i 's/version: 0.0.0/version: '\"$${GALAXY_VERSION:-0.0.0}\"'/g' galaxy.yml"
- pip install ansible -qq - pip install ansible -qq
- ansible-galaxy collection build --output-path dist/ - ansible-galaxy collection build --output-path dist/
- name: checksum - name: checksum
image: alpine image: alpine
commands: commands:
- cd dist/ && sha256sum * > ../sha256sum.txt - cd dist/ && sha256sum * > ../sha256sum.txt
- name: changelog-generate - name: changelog-generate
image: thegeeklab/git-chglog image: thegeeklab/git-chglog
commands: commands:
- git fetch -tq - git fetch -tq
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased} - git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
- name: changelog-format - name: changelog-format
image: thegeeklab/alpine-tools image: thegeeklab/alpine-tools
commands: commands:
- prettier CHANGELOG.md - prettier CHANGELOG.md
- prettier -w CHANGELOG.md - prettier -w CHANGELOG.md
- name: publish-gitea - name: publish-gitea
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
base_url: https://gitea.rknet.org base_url: https://gitea.rknet.org
files: files:
- dist/* - dist/*
- sha256sum.txt - sha256sum.txt
note: CHANGELOG.md note: CHANGELOG.md
overwrite: true overwrite: true
title: ${DRONE_TAG} title: ${DRONE_TAG}
when: when:
ref: ref:
- refs/tags/** - refs/tags/**
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
depends_on: depends_on:
- test - test
--- ---
kind: pipeline kind: pipeline
@ -151,25 +151,25 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: publish - name: publish
image: plugins/gh-pages image: plugins/gh-pages
settings: settings:
netrc_machine: gitea.rknet.org netrc_machine: gitea.rknet.org
pages_directory: docs/ pages_directory: docs/
password: password:
from_secret: gitea_token from_secret: gitea_token
remote_url: https://gitea.rknet.org/ansible/${DRONE_REPO_NAME} remote_url: https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}
target_branch: docs target_branch: docs
username: username:
from_secret: gitea_username from_secret: gitea_username
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
depends_on: depends_on:
- build - build
--- ---
kind: pipeline kind: pipeline
@ -180,32 +180,32 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: matrix - name: matrix
image: thegeeklab/drone-matrix image: plugins/matrix
settings: settings:
homeserver: homeserver:
from_secret: matrix_homeserver from_secret: matrix_homeserver
password: password:
from_secret: matrix_password from_secret: matrix_password
roomid: roomid:
from_secret: matrix_roomid from_secret: matrix_roomid
template: "Status: **{{ build.Status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.Link }}){{#if build.Branch}} ({{ build.Branch }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}" template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
username: username:
from_secret: matrix_username from_secret: matrix_username
trigger: trigger:
ref: ref:
- refs/heads/master - refs/heads/master
- refs/tags/** - refs/tags/**
status: status:
- success - success
- failure - failure
depends_on: depends_on:
- documentation - documentation
--- ---
kind: signature kind: signature
hmac: caf424e7fa2ffcf45e2eebf15a840d2c8a256e4032d3cf8fb2a6f1cef59b42a4 hmac: afaebf7248604450f06f77948cddd98029bc16f6435bcd29a37f132367659069
... ...

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
ansible-core ansible-base
pyopenssl pyopenssl
proxmoxer proxmoxer
hcloud hcloud

View File

@ -9,3 +9,6 @@ corenetworks
# requirement for the openssl_pkcs12 module # requirement for the openssl_pkcs12 module
pyOpenSSL pyOpenSSL
# requirement for the docker_compose module
docker-compose