Skip to content

Commit ec083a4

Browse files
🚀 Switch from Alpine to Ubuntu and update workflows (#103)
Co-authored-by: ChristophShyper <[email protected]>
1 parent 45474a2 commit ec083a4

24 files changed

+1148
-391
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*
33

44
# Include
5+
!Dockerfile
6+
!entrypoint.sh
57
!LICENSE
68
!README.md
7-
!entrypoint.sh

.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: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,16 @@ version: 2
22
updates:
33
# Maintain dependencies for GitHub Actions
44
- package-ecosystem: github-actions
5-
directory: "/"
5+
directory: /
66
schedule:
7-
interval: daily
7+
interval: weekly
88
assignees:
99
- ChristophShyper
10-
labels:
11-
- automatic
1210

1311
# Enable version updates for Docker
1412
- package-ecosystem: docker
15-
directory: "/"
13+
directory: /
1614
schedule:
17-
interval: daily
15+
interval: weekly
1816
assignees:
1917
- ChristophShyper
20-
labels:
21-
- automatic
22-
23-
# # Enable version updates for pip
24-
# - package-ecosystem: pip
25-
# directory: "/"
26-
# schedule:
27-
# interval: daily
28-
# assignees:
29-
# - ChristophShyper
30-
# labels:
31-
# - automatic

.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.
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: (Auto) Create 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/[email protected]
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
35+
runs-on: ubuntu-24.04-arm
36+
needs: [lint]
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/[email protected]
46+
with:
47+
version: 3.x
48+
49+
- name: Install Docker Buildx
50+
uses: docker/setup-buildx-action@v3
51+
with:
52+
install: true
53+
54+
- name: Install QEMU
55+
uses: docker/setup-qemu-action@v3
56+
with:
57+
image: tonistiigi/binfmt:latest
58+
platforms: amd64,arm64
59+
60+
- name: Get Docker commands
61+
run: task docker:cmds
62+
63+
- name: Build and push test image
64+
env:
65+
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
66+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67+
run: task docker:push
68+
69+
- name: Inspect image
70+
run: task docker:push:inspect
71+
72+
pull-request:
73+
name: Pull Request
74+
runs-on: ubuntu-24.04-arm
75+
steps:
76+
- name: Checkout
77+
uses: actions/checkout@v5
78+
with:
79+
fetch-depth: 0
80+
fetch-tags: true
81+
82+
- name: Install Task
83+
uses: arduino/[email protected]
84+
with:
85+
version: 3.x
86+
87+
- name: Get template
88+
run: task git:get-pr-template
89+
90+
- name: Create Pull Request
91+
uses: devops-infra/action-pull-request@v1
92+
with:
93+
github_token: ${{ secrets.GITHUB_TOKEN }}
94+
assignee: ${{ github.actor }}
95+
template: .tmp/PULL_REQUEST_TEMPLATE.md
96+
get_diff: true

0 commit comments

Comments
 (0)