-
Notifications
You must be signed in to change notification settings - Fork 169
56 lines (48 loc) · 1.3 KB
/
Copy pathdocker-build.yml
File metadata and controls
56 lines (48 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: docker build
permissions:
contents: read
packages: read
on:
workflow_dispatch:
pull_request:
paths:
- '.github/**'
- 'backend/**'
- 'frontend/**'
- 'Dockerfile'
- 'docker-compose.yml'
push:
branches:
- 'master'
jobs:
docker-build:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build frontend Docker image
uses: docker/build-push-action@v7
with:
context: frontend
push: false
file: frontend/Dockerfile
# Don't build linux/arm64/v8 because it's very slow with QEMU
platforms: linux/amd64
- name: Build backend Docker image
uses: docker/build-push-action@v7
with:
context: backend
push: false
file: backend/Dockerfile
# Don't build linux/arm64/v8 because it's very slow with QEMU
platforms: linux/amd64
- name: Build combined Docker image
uses: docker/build-push-action@v7
with:
context: ./
push: false
file: Dockerfile
# Don't build linux/arm64/v8 because it's very slow with QEMU
platforms: linux/amd64