77
88jobs :
99 labels :
10- name : Update repo labels
11- runs-on : ubuntu-latest
10+ name : Repo labels
11+ runs-on : ubuntu-24.04-arm
1212 steps :
13- - name : Checkout repository
13+ - name : Checkout
1414 uses : actions/checkout@v4
1515
16- - name : Download labels ' config
16+ - name : Labels ' config
1717 shell : bash
1818 run : |
1919 mkdir -p .tmp
2020 curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/.github/labels.yml -o .tmp/labels.yml
2121
22- - name : Update labels - dry run
22+ - name : Update labels ( dry run)
2323 uses : crazy-max/ghaction-github-labeler@v5.2.0
2424 with :
2525 github-token : ${{ secrets.GITHUB_TOKEN }}
2626 yaml-file : .tmp/labels.yml
2727 dry-run : true
2828
2929 lint :
30- name : Run linters
30+ name : Linters
3131 if : " !startsWith(github.ref, 'refs/heads/dependabot')"
32- runs-on : ubuntu-latest
32+ runs-on : ubuntu-24.04-arm
3333 steps :
34- - name : Checkout repository
34+ - name : Checkout
3535 uses : actions/checkout@v4
3636
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
4439 with :
4540 dockerfile : Dockerfile
4641
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
5046 steps :
51- - name : Checkout repository
47+ - name : Checkout
5248 uses : actions/checkout@v4
5349
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
5562 env :
63+ DOCKER_BUILDKIT : 1
64+ DOCKER_TOKEN : ${{ secrets.DOCKER_TOKEN }}
65+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5666 TERM : xterm-256color
57- run : make build
67+ run : make push VERSION_PREFIX=test-
5868
5969 pull_request :
6070 name : Create Pull Request
61- runs-on : ubuntu-latest
71+ runs-on : ubuntu-24.04
6272 steps :
63- - name : Checkout repository
73+ - name : Checkout
6474 uses : actions/checkout@v4
6575 with :
6676 fetch-depth : 0
6777
68- - name : Download Pull Request template
78+ - name : Template
6979 shell : bash
7080 run : |
7181 mkdir -p .tmp
7282 curl -LsS https://raw.githubusercontent.com/devops-infra/.github/master/PULL_REQUEST_TEMPLATE.md -o .tmp/PULL_REQUEST_TEMPLATE.md
7383
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 ')
7686 uses : devops-infra/action-pull-request@v0.5.5
7787 with :
7888 github_token : ${{ secrets.GITHUB_TOKEN }}
8191 template : .tmp/PULL_REQUEST_TEMPLATE.md
8292 get_diff : true
8393
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') "
8696 uses : devops-infra/action-pull-request@v0.5.5
8797 with :
8898 github_token : ${{ secrets.GITHUB_TOKEN }}
91101 template : .tmp/PULL_REQUEST_TEMPLATE.md
92102 get_diff : true
93103
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 ')
96106 uses : devops-infra/action-pull-request@v0.5.5
97107 with :
98108 github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -101,8 +111,8 @@ jobs:
101111 template : .tmp/PULL_REQUEST_TEMPLATE.md
102112 get_diff : true
103113
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 ')
106116 uses : devops-infra/action-pull-request@v0.5.5
107117 with :
108118 github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -111,7 +121,7 @@ jobs:
111121 template : .tmp/PULL_REQUEST_TEMPLATE.md
112122 get_diff : true
113123
114- - name : Create pull request - test (conditional)
124+ - name : PR - test (conditional)
115125 if : startsWith(github.ref, 'refs/heads/test')
116126 uses : devops-infra/action-pull-request@v0.5.5
117127 with :
@@ -123,8 +133,8 @@ jobs:
123133 draft : true
124134 get_diff : true
125135
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')"
128138 uses : devops-infra/action-pull-request@v0.5.5
129139 with :
130140 github_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments