7
7
8
8
jobs :
9
9
labels :
10
- name : Update repo labels
11
- runs-on : ubuntu-latest
10
+ name : Repo labels
11
+ runs-on : ubuntu-24.04-arm
12
12
steps :
13
- - name : Checkout repository
13
+ - name : Checkout
14
14
uses : actions/checkout@v4
15
15
16
- - name : Download labels ' config
16
+ - name : Labels ' config
17
17
shell : bash
18
18
run : |
19
19
mkdir -p .tmp
20
20
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/.github/labels.yml -o .tmp/labels.yml
21
21
22
- - name : Update labels - dry run
22
+ - name : Update labels ( dry run)
23
23
uses : crazy-max/ghaction-github-labeler@v5.2.0
24
24
with :
25
25
github-token : ${{ secrets.GITHUB_TOKEN }}
26
26
yaml-file : .tmp/labels.yml
27
27
dry-run : true
28
28
29
29
lint :
30
- name : Run linters
30
+ name : Linters
31
31
if : " !startsWith(github.ref, 'refs/heads/dependabot')"
32
- runs-on : ubuntu-latest
32
+ runs-on : ubuntu-24.04-arm
33
33
steps :
34
- - name : Checkout repository
34
+ - name : Checkout
35
35
uses : actions/checkout@v4
36
36
37
- - name : Docker Lint
38
- uses : luke142367/Docker-Lint-Action@v1.1.1
39
- env :
40
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
-
42
- - name : Haskell Dockerfile Linter (Hadolint)
43
- uses : brpaz/hadolint-action@v1.5.0
37
+ - name : Hadolint
38
+ uses : hadolint/hadolint-action@v3.1.0
44
39
with :
45
40
dockerfile : Dockerfile
46
41
47
- build :
48
- name : Build image
49
- runs-on : ubuntu-latest
42
+ build_and_push :
43
+ name : Build & push
44
+ if : " !startsWith(github.ref, 'refs/heads/dependabot')"
45
+ runs-on : ubuntu-24.04-arm
50
46
steps :
51
- - name : Checkout repository
47
+ - name : Checkout
52
48
uses : actions/checkout@v4
53
49
54
- - name : Build Docker image
50
+ - name : Docker Buildx
51
+ uses : docker/setup-buildx-action@v3.9.0
52
+ with :
53
+ install : true
54
+
55
+ - name : QEMU
56
+ uses : docker/setup-qemu-action@v3.4.0
57
+ with :
58
+ image : tonistiigi/binfmt:latest
59
+ platforms : amd64,arm64
60
+
61
+ - name : Build & push
55
62
env :
63
+ DOCKER_BUILDKIT : 1
64
+ DOCKER_TOKEN : ${{ secrets.DOCKER_TOKEN }}
65
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56
66
TERM : xterm-256color
57
- run : make build
67
+ run : make push VERSION_PREFIX=test-
58
68
59
69
pull_request :
60
70
name : Create Pull Request
61
- runs-on : ubuntu-latest
71
+ runs-on : ubuntu-24.04
62
72
steps :
63
- - name : Checkout repository
73
+ - name : Checkout
64
74
uses : actions/checkout@v4
65
75
with :
66
76
fetch-depth : 0
67
77
68
- - name : Download Pull Request template
78
+ - name : Template
69
79
shell : bash
70
80
run : |
71
81
mkdir -p .tmp
72
82
curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md -o .tmp/PULL_REQUEST_TEMPLATE.md
73
83
74
- - name : Create pull request - bugfix (conditional)
75
- if : startsWith(github.ref, 'refs/heads/bugfix ')
84
+ - name : PR - bugfix (conditional)
85
+ if : startsWith(github.ref, 'refs/heads/bug ')
76
86
uses : devops-infra/action-pull-request@v0.5.5
77
87
with :
78
88
github_token : ${{ secrets.GITHUB_TOKEN }}
81
91
template : .tmp/PULL_REQUEST_TEMPLATE.md
82
92
get_diff : true
83
93
84
- - name : Create pull request - dependency (conditional)
85
- if : startsWith(github.ref, 'refs/heads/dependency')
94
+ - name : PR - dependency (conditional)
95
+ if : " startsWith(github.ref, 'refs/heads/dep') && !startsWith(github.ref, 'refs/heads/dependabot') "
86
96
uses : devops-infra/action-pull-request@v0.5.5
87
97
with :
88
98
github_token : ${{ secrets.GITHUB_TOKEN }}
91
101
template : .tmp/PULL_REQUEST_TEMPLATE.md
92
102
get_diff : true
93
103
94
- - name : Create pull request - documentation (conditional)
95
- if : startsWith(github.ref, 'refs/heads/documentation ')
104
+ - name : PR - documentation (conditional)
105
+ if : startsWith(github.ref, 'refs/heads/doc ')
96
106
uses : devops-infra/action-pull-request@v0.5.5
97
107
with :
98
108
github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -101,8 +111,8 @@ jobs:
101
111
template : .tmp/PULL_REQUEST_TEMPLATE.md
102
112
get_diff : true
103
113
104
- - name : Create pull request - feature (conditional)
105
- if : startsWith(github.ref, 'refs/heads/feature ')
114
+ - name : PR - feature (conditional)
115
+ if : startsWith(github.ref, 'refs/heads/feat ')
106
116
uses : devops-infra/action-pull-request@v0.5.5
107
117
with :
108
118
github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -111,7 +121,7 @@ jobs:
111
121
template : .tmp/PULL_REQUEST_TEMPLATE.md
112
122
get_diff : true
113
123
114
- - name : Create pull request - test (conditional)
124
+ - name : PR - test (conditional)
115
125
if : startsWith(github.ref, 'refs/heads/test')
116
126
uses : devops-infra/action-pull-request@v0.5.5
117
127
with :
@@ -123,8 +133,8 @@ jobs:
123
133
draft : true
124
134
get_diff : true
125
135
126
- - name : Create pull request - other (conditional)
127
- if : " !startsWith(github.ref, 'refs/heads/bugfix ') && !startsWith(github.ref, 'refs/heads/dependabot ') && !startsWith(github.ref, 'refs/heads/dependency ') && !startsWith(github.ref, 'refs/heads/documentation') && !startsWith(github.ref, 'refs/heads/feature ') && !startsWith(github.ref, 'refs/heads/test')"
136
+ - name : PR - test (conditional)
137
+ if : " !startsWith(github.ref, 'refs/heads/bug ') && !startsWith(github.ref, 'refs/heads/dep ') && !startsWith(github.ref, 'refs/heads/doc ') && !startsWith(github.ref, 'refs/heads/feat ') && !startsWith(github.ref, 'refs/heads/test')"
128
138
uses : devops-infra/action-pull-request@v0.5.5
129
139
with :
130
140
github_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments