Skip to content

Commit a64685c

Browse files
authored
Enable multi arch frontend images and update ubuntu to 24.04 on CI (#1120)
ref #1044
1 parent 0e8bfc2 commit a64685c

File tree

12 files changed

+70
-47
lines changed

12 files changed

+70
-47
lines changed

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77

88
jobs:
99
dependabot:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
1111
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'evroon/bracket'
1212
steps:
1313
- name: Enable auto-merge for Dependabot PRs

.github/workflows/backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515

1616
services:
1717
postgres:

.github/workflows/contributors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
update-contributors-readme:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
1111
name: Update contributors in README.md
1212
steps:
1313
- name: Contribute List
@@ -19,7 +19,7 @@ jobs:
1919
pr_title_on_protected: "Update contributors in readme"
2020

2121
update-contributors-docs:
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-24.04
2323
name: Update contributors in docs
2424
steps:
2525
- name: Contribute List

.github/workflows/crowdin-pretranslate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
trigger_crowdin_tm:
1010
name: Crowdin Translation Memory Trigger
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04
1212
# Prevent this workflow from running (and failing) on forks
1313
if: github.repository == 'evroon/bracket'
1414
steps:

.github/workflows/docker-build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: docker
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- 'backend/**'
8+
- 'frontend/**'
9+
- 'docker-compose.yml'
10+
push:
11+
branches:
12+
- 'master'
13+
14+
jobs:
15+
build-and-push-image:
16+
runs-on: ubuntu-24.04
17+
permissions:
18+
contents: read
19+
packages: read
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Build frontend Docker image
29+
uses: docker/build-push-action@v6
30+
with:
31+
context: frontend
32+
push: false
33+
file: frontend/Dockerfile
34+
tags: ${{ steps.meta_frontend.outputs.tags }}
35+
labels: ${{ steps.meta_frontend.outputs.labels }}
36+
# Don't build linux/arm64/v8 because it's very slow with QEMU
37+
platforms: linux/amd64
38+
39+
- name: Build backend Docker image
40+
uses: docker/build-push-action@v6
41+
with:
42+
context: backend
43+
push: false
44+
file: backend/Dockerfile
45+
tags: ${{ steps.meta_backend.outputs.tags }}
46+
labels: ${{ steps.meta_backend.outputs.labels }}
47+
# Don't build linux/arm64/v8 because it's very slow with QEMU
48+
platforms: linux/amd64

.github/workflows/publish_docker_image.yml renamed to .github/workflows/docker-publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313

1414
jobs:
1515
build-and-push-image:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717
permissions:
1818
contents: read
1919
packages: write
@@ -29,36 +29,36 @@ jobs:
2929
uses: docker/setup-buildx-action@v3
3030

3131
- name: Log in to the Container registry
32-
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
32+
uses: docker/login-action@v3
3333
with:
3434
registry: ${{ env.REGISTRY }}
3535
username: ${{ github.actor }}
3636
password: ${{ secrets.GITHUB_TOKEN }}
3737

3838
- name: Extract metadata (tags, labels) for frontend Docker image
3939
id: meta_frontend
40-
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96
40+
uses: docker/metadata-action@v5
4141
with:
4242
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_FRONTEND }}
4343

4444
- name: Extract metadata (tags, labels) for backend Docker image
4545
id: meta_backend
46-
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96
46+
uses: docker/metadata-action@v5
4747
with:
4848
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}
4949

5050
- name: Build and push frontend Docker image
51-
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991
51+
uses: docker/build-push-action@v6
5252
with:
5353
context: frontend
5454
push: true
5555
file: frontend/Dockerfile
5656
tags: ${{ steps.meta_frontend.outputs.tags }}
5757
labels: ${{ steps.meta_frontend.outputs.labels }}
58-
platforms: linux/amd64
58+
platforms: linux/amd64,linux/arm64/v8
5959

6060
- name: Build and push backend Docker image
61-
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991
61+
uses: docker/build-push-action@v6
6262
with:
6363
context: backend
6464
push: true

.github/workflows/docker.yml

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

.github/workflows/docs_test.yml renamed to .github/workflows/docs-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515

1616
steps:
1717
- uses: actions/checkout@v4

.github/workflows/docs_publish.yml renamed to .github/workflows/docs-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212

1313
steps:
1414
- uses: actions/checkout@v4

.github/workflows/frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-24.04
1515

1616
steps:
1717
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)