Skip to content

Commit b9bf953

Browse files
committed
update settings and workflows, update codespell findings
1 parent 5375bca commit b9bf953

File tree

8 files changed

+65
-71
lines changed

8 files changed

+65
-71
lines changed

.github/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"repos": {
3+
"description": "The Docker Management Container includes a set of plugins and services that make it easier to build, test, deploy and manage infrastructure.",
4+
"visibility": "public",
5+
"default_branch": "main",
6+
"homepage": "https://telekom-mms.github.io/docker-management-container/",
7+
"topics": [
8+
"dmc",
9+
"docker",
10+
"devops",
11+
"toolbox"
12+
]
13+
}
14+
}

.github/workflows/codespell.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: codespell
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
call-codespell:
12+
uses: telekom-mms/.github/.github/workflows/codespell.yml@main

.github/workflows/linting.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
---
22
name: linting
33

4-
on: [push, pull_request]
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
59

610
jobs:
711
linting:

.github/workflows/release.yml

Lines changed: 13 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,19 @@
11
---
2-
name: New release
2+
name: release
33

44
on:
55
push:
6-
branches:
7-
- main
6+
branches: [main]
87

9-
jobs:
10-
generate_changelog:
11-
runs-on: ubuntu-latest
12-
name: create release draft
13-
steps:
14-
- uses: actions/checkout@v3.5.3
15-
with:
16-
fetch-depth: 0
17-
18-
- name: 'Get Previous tag'
19-
id: previoustag
20-
uses: "WyriHaximus/github-action-get-previous-tag@master"
21-
env:
22-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
23-
24-
- name: calculate next version
25-
id: version
26-
uses: patrickjahns/version-drafter-action@v1
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
30-
- name: Generate changelog
31-
uses: charmixer/auto-changelog-action@v1.4
32-
with:
33-
token: ${{ secrets.GITHUB_TOKEN }}
34-
future_release: ${{ steps.version.outputs.next-version }}
35-
36-
- name: push changelog
37-
uses: github-actions-x/commit@v2.9
38-
with:
39-
github-token: ${{ secrets.GITHUB_TOKEN }}
40-
push-branch: 'main'
41-
commit-message: 'update changelog'
42-
force-add: 'true'
43-
files: CHANGELOG.md
44-
name: T-Systems MMS
45-
email: frage@telekom-mms.com
8+
env:
9+
TEMPLATE_REPOSITORY: telekom-mms/terraform-template
4610

47-
# do a second checkout to prevent race situation
48-
# changelog gets updated but action works on old commit id
49-
- uses: actions/checkout@v3.5.3
50-
with:
51-
ref: main
52-
53-
- name: Generate changelog for the release
54-
run: |
55-
sed '/## \[${{ steps.previoustag.outputs.tag }}\]/Q' CHANGELOG.md > CHANGELOGRELEASE.md
56-
57-
- name: Read CHANGELOG.md
58-
id: package
59-
uses: juliangruber/read-file-action@v1
60-
with:
61-
path: ./CHANGELOGRELEASE.md
62-
63-
- name: Create Release draft
64-
id: create_release
65-
uses: actions/create-release@v1
66-
env:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
68-
with:
69-
release_name: ${{ steps.version.outputs.next-version }}
70-
tag_name: ${{ steps.version.outputs.next-version }}
71-
body: |
72-
${{ steps.package.outputs.content }}
73-
draft: true
11+
jobs:
12+
call-readme:
13+
if: github.repository != '$TEMPLATE_REPOSITORY'
14+
uses: telekom-mms/.github/.github/workflows/terraform_docs.yml@main
15+
call-release:
16+
if: github.repository != '$TEMPLATE_REPOSITORY'
17+
uses: telekom-mms/.github/.github/workflows/release.yml@main
18+
with:
19+
files: README.md

.github/workflows/settings.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: settings
3+
4+
on:
5+
push:
6+
branches: [main]
7+
schedule:
8+
- cron: '0 10 * * *'
9+
10+
env:
11+
TEMPLATE_REPOSITORY: telekom-mms/terraform-template
12+
13+
jobs:
14+
call-settings:
15+
if: github.repository != '$TEMPLATE_REPOSITORY'
16+
uses: telekom-mms/.github/.github/workflows/github_repository.yml@main
17+
secrets:
18+
GH_APP_CREDENTIALS_TOKEN: ${{ secrets.GH_APP_CREDENTIALS_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
- Update docker/metadata-action action to v4.6.0 [\#91](https://github.com/telekom-mms/docker-management-container/pull/91) ([renovate[bot]](https://github.com/apps/renovate))
3838
- Update actions/checkout action to v3.5.2 [\#90](https://github.com/telekom-mms/docker-management-container/pull/90) ([renovate[bot]](https://github.com/apps/renovate))
3939
- Update actions/checkout action to v3.5.1 [\#89](https://github.com/telekom-mms/docker-management-container/pull/89) ([renovate[bot]](https://github.com/apps/renovate))
40-
- try to improve readabilty of templates by using indentation [\#88](https://github.com/telekom-mms/docker-management-container/pull/88) ([z-bsod](https://github.com/z-bsod))
40+
- try to improve readability of templates by using indentation [\#88](https://github.com/telekom-mms/docker-management-container/pull/88) ([z-bsod](https://github.com/z-bsod))
4141
- Update actions/checkout action to v3.5.0 [\#86](https://github.com/telekom-mms/docker-management-container/pull/86) ([renovate[bot]](https://github.com/apps/renovate))
4242
- rm table style [\#79](https://github.com/telekom-mms/docker-management-container/pull/79) ([michaelamattes](https://github.com/michaelamattes))
4343

migrate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ BINARIES="GCLOUD_VERSION|GITHUB_BINARIES"
1717
REQUIREMENTS="PIP_REQUIREMENTS|ANSIBLE_REQUIREMENTS"
1818
EXTENSIONS="AZ_CLI_EXTENSIONS|HELM_EXTENSIONS"
1919

20-
## funtion
20+
## function
2121
migrate() {
2222
## packages
2323
SEARCH_PACKAGES=$(grep -E ${PACKAGES} "${OLD_ENV_FILE}" | sed 's/"//g' | sed 's/PACKAGES=//g')

template.d/21_requirements

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## requirements
22
RUN if [ -n "${REQUIREMENTS}" ]; then \
3-
### pip should alway be the first element in array
3+
### pip should always be the first element in array
44
REQUIREMENTS=$(echo ${REQUIREMENTS} | awk -F 'pip;' '{print FS$NR$NF}') && \
55
IFS=';' && \
66
for REQUIREMENT in ${REQUIREMENTS[@]}; \

0 commit comments

Comments
 (0)