Skip to content

Commit 625f7c5

Browse files
🎨 Huge refactor of CI/CD and updates dependencies (#95)
Co-authored-by: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com>
1 parent 7baf52f commit 625f7c5

21 files changed

+800
-338
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33

44
# Include
55
!LICENSE
6-
!README.md
76
!entrypoint.sh
7+
!Dockerfile
8+
!README.md

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# EditorConfig helps developers define and maintain consistent coding styles
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 2
10+
trim_trailing_whitespace = true

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
updates:
33
# Maintain dependencies for GitHub Actions
44
- package-ecosystem: github-actions
5-
directory: "/"
5+
directory: /
66
schedule:
77
interval: daily
88
assignees:
@@ -12,7 +12,7 @@ updates:
1212

1313
# Enable version updates for Docker
1414
- package-ecosystem: docker
15-
directory: "/"
15+
directory: /
1616
schedule:
1717
interval: daily
1818
assignees:
@@ -22,7 +22,7 @@ updates:
2222

2323
# # Enable version updates for pip
2424
# - package-ecosystem: pip
25-
# directory: "/"
25+
# directory: /
2626
# schedule:
2727
# interval: daily
2828
# assignees:

.github/workflows/CRON.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/PUSH-MASTER.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/PUSH-OTHER.yml

Lines changed: 0 additions & 135 deletions
This file was deleted.

.github/workflows/pull-request.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Pull Request
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
- dependabot/**
8+
9+
permissions:
10+
contents: read
11+
packages: write
12+
pull-requests: write
13+
14+
jobs:
15+
lint:
16+
name: Lint
17+
runs-on: ubuntu-24.04-arm
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
with:
22+
fetch-depth: 0
23+
fetch-tags: true
24+
25+
- name: Install Task
26+
uses: arduino/setup-task@v2.0.0
27+
with:
28+
version: 3.x
29+
30+
- name: Run linters
31+
run: task lint
32+
33+
build-and-push:
34+
name: Build and Push test
35+
needs: [lint]
36+
runs-on: ubuntu-24.04-arm
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v5
40+
with:
41+
fetch-depth: 0
42+
fetch-tags: true
43+
44+
- name: Install Task
45+
uses: arduino/setup-task@v2.0.0
46+
with:
47+
version: 3.x
48+
49+
- name: Docker Buildx
50+
uses: docker/setup-buildx-action@v3
51+
with:
52+
install: true
53+
54+
- name: QEMU
55+
uses: docker/setup-qemu-action@v3
56+
with:
57+
image: tonistiigi/binfmt:latest
58+
platforms: amd64,arm64
59+
60+
- name: Build and push test image
61+
env:
62+
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
run: task docker:push
65+
66+
pull-request:
67+
name: Pull Request
68+
runs-on: ubuntu-24.04-arm
69+
steps:
70+
- name: Checkout
71+
uses: actions/checkout@v5
72+
with:
73+
fetch-depth: 0
74+
fetch-tags: true
75+
76+
- name: Template
77+
shell: bash
78+
run: |
79+
mkdir -p .tmp
80+
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md -o .tmp/PULL_REQUEST_TEMPLATE.md
81+
82+
- name: Create Pull Request
83+
uses: devops-infra/action-pull-request@v0.6
84+
with:
85+
github_token: ${{ secrets.GITHUB_TOKEN }}
86+
assignee: ${{ github.actor }}
87+
template: .tmp/PULL_REQUEST_TEMPLATE.md
88+
get_diff: true

0 commit comments

Comments
 (0)