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