Compare commits

..

No commits in common. "main" and "test-rocky8" have entirely different histories.

5 changed files with 19 additions and 21 deletions

View File

@ -15,18 +15,18 @@ local PipelineLinting = {
}, },
{ {
name: 'python-format', name: 'python-format',
image: 'python:3.11', image: 'python:3.9',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
commands: [ commands: [
'pip install -qq yapf', 'pip install -qq yapf',
'[ -z "$(find . -type f -name *.py)" ] || (yapf -rd ./)', '[ -z "$(find . -type f -name *.py)" ] || (yapf -rd ./)',
], ],
}, },
{ {
name: 'python-flake8', name: 'python-flake8',
image: 'python:3.11', image: 'python:3.9',
environment: { environment: {
PY_COLORS: 1, PY_COLORS: 1,
}, },
@ -37,7 +37,7 @@ local PipelineLinting = {
}, },
], ],
trigger: { trigger: {
ref: ['refs/heads/main', 'refs/tags/**', 'refs/pull/**'], ref: ['refs/heads/master', 'refs/tags/**', 'refs/pull/**'],
}, },
}; };
@ -73,12 +73,12 @@ local PipelineDocumentation = {
target_branch: 'docs', target_branch: 'docs',
}, },
when: { when: {
ref: ['refs/heads/main'], ref: ['refs/heads/master'],
}, },
}, },
], ],
trigger: { trigger: {
ref: ['refs/heads/main', 'refs/tags/**', 'refs/pull/**'], ref: ['refs/heads/master', 'refs/tags/**', 'refs/pull/**'],
}, },
depends_on: [ depends_on: [
'linting', 'linting',
@ -102,7 +102,7 @@ local PipelineNotification = {
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 }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}', 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' },
}, },
@ -113,7 +113,7 @@ local PipelineNotification = {
], ],
trigger: { trigger: {
status: ['success', 'failure'], status: ['success', 'failure'],
ref: ['refs/heads/main', 'refs/tags/**'], ref: ['refs/heads/master', 'refs/tags/**'],
}, },
}; };

View File

@ -13,15 +13,15 @@ steps:
- ansible-later - ansible-later
- name: python-format - name: python-format
image: python:3.11 image: python:3.9
commands: commands:
- pip install -qq yapf - pip install -qq yapf
- "[ -z \"$(find . -type f -name *.py)\" ] || (yapf -rd ./)" - "[ -z \"$(find . -type f -name *.py)\" ] || (yapf -rd ./)"
environment: environment:
PY_COLORS: 1 PY_COLORS: 1
- name: python-flake8 - name: python-flake8
image: python:3.11 image: python:3.9
commands: commands:
- pip install -qq flake8 - pip install -qq flake8
- flake8 - flake8
@ -30,7 +30,7 @@ steps:
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/master
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
@ -66,11 +66,11 @@ steps:
from_secret: gitea_username from_secret: gitea_username
when: when:
ref: ref:
- refs/heads/main - refs/heads/master
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/master
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
@ -98,13 +98,13 @@ steps:
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 }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}" 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/main - refs/heads/master
- refs/tags/** - refs/tags/**
status: status:
- success - success
@ -115,6 +115,6 @@ depends_on:
--- ---
kind: signature kind: signature
hmac: 7b60d5e40791ff93e30ab6d4ff11ba51d82c31bb3bb8c0e2df41ca3410acb673 hmac: 9906f9000e06d1b7b8a86ba89f6d769058a9b6c54e178487a9560bae1897490b
... ...

2
.gitignore vendored
View File

@ -9,5 +9,3 @@ __pycache__/
*.py[cod] *.py[cod]
*$py.class *$py.class
# ---> Docs
/_docs

View File

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2022 Robert Kaussow <mail@thegeeklab.de> Copyright (c) 2021 Robert Kaussow <mail@thegeeklab.de>
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -8,7 +8,7 @@ galaxy_info:
# @meta description: > # @meta description: >
# [![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.ucs_dns) # [![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.ucs_dns)
# [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.ucs_dns?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.ucs_dns) # [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.ucs_dns?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.ucs_dns)
# [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](https://gitea.rknet.org/ansible/xoxys.ucs_dns/src/branch/main/LICENSE) # [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?label=license)](https://gitea.rknet.org/ansible/xoxys.ucs_dns/src/branch/master/LICENSE)
# #
# Manage DNS records on UCS # Manage DNS records on UCS
# @end # @end