Compare commits

..

6 Commits

Author SHA1 Message Date
1c62ad049e
chore: remove docker-compose module
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-11-28 15:24:50 +01:00
32a0d83997
chore: replace ansible-base by new package ansible-core
Some checks reported errors
continuous-integration/drone/push Build was killed
2021-10-11 21:55:53 +02:00
05592c3dd1
improve changelog template
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-22 11:47:47 +02:00
d65b4d90ae
sign drone config
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-22 09:24:06 +02:00
85cd1071ca
re-generate drone config
Some checks are pending
continuous-integration/drone/push Build is pending
2021-09-22 09:19:30 +02:00
d941eb9150
ci: switch to drone-matrix plugin
All checks were successful
continuous-integration/drone/push Build is passing
2021-09-22 09:08:41 +02:00
6 changed files with 130 additions and 1306 deletions

View File

@ -6,13 +6,9 @@
{{ range .CommitGroups -}} {{ range .CommitGroups -}}
### {{ .Title }} ### {{ .Title }}
{{ $subjects := list }}
{{ range .Commits -}} {{ range .Commits -}}
{{ if not (has .Subject $subjects) -}} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ (regexReplaceAll "(Co-\\w*-by.*)" .Subject "") | trim }}
- {{ 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: 'plugins/matrix', image: 'thegeeklab/drone-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 }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}', 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 }}',
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: plugins/matrix image: thegeeklab/drone-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 }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}" 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 }}"
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: afaebf7248604450f06f77948cddd98029bc16f6435bcd29a37f132367659069 hmac: caf424e7fa2ffcf45e2eebf15a840d2c8a256e4032d3cf8fb2a6f1cef59b42a4
... ...

File diff suppressed because it is too large Load Diff

View File

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

View File

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