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,7 +15,7 @@ local PipelineLinting = {
},
{
name: 'python-format',
image: 'python:3.11',
image: 'python:3.9',
environment: {
PY_COLORS: 1,
},
@ -26,7 +26,7 @@ local PipelineLinting = {
},
{
name: 'python-flake8',
image: 'python:3.11',
image: 'python:3.9',
environment: {
PY_COLORS: 1,
},
@ -37,7 +37,7 @@ local PipelineLinting = {
},
],
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',
},
when: {
ref: ['refs/heads/main'],
ref: ['refs/heads/master'],
},
},
],
trigger: {
ref: ['refs/heads/main', 'refs/tags/**', 'refs/pull/**'],
ref: ['refs/heads/master', 'refs/tags/**', 'refs/pull/**'],
},
depends_on: [
'linting',
@ -102,7 +102,7 @@ local PipelineNotification = {
settings: {
homeserver: { from_secret: 'matrix_homeserver' },
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' },
password: { from_secret: 'matrix_password' },
},
@ -113,7 +113,7 @@ local PipelineNotification = {
],
trigger: {
status: ['success', 'failure'],
ref: ['refs/heads/main', 'refs/tags/**'],
ref: ['refs/heads/master', 'refs/tags/**'],
},
};

View File

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

2
.gitignore vendored
View File

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

View File

@ -1,6 +1,6 @@
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
of this software and associated documentation files (the "Software"), to deal

View File

@ -8,7 +8,7 @@ galaxy_info:
# @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)
# [![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
# @end