File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,18 @@ jobs:
26
26
- " php"
27
27
- " python"
28
28
- " ruby"
29
+ arch :
30
+ - " arm64v8"
31
+ - " armv7l"
32
+ - " ppc64le"
33
+ - " s390x"
34
+ - " x86_64"
29
35
env :
30
36
ISHOCON_APP_LANG : ${{ matrix.language }}
31
37
UNAME : ${{ secrets.DOCKER_HUB_USERNAME }}
38
+ ARCH : ${{ matrix.arch }}
32
39
steps :
33
40
- uses : actions/checkout@v4
34
- - name : Replace base image in docker-compose.yml with github actor name
35
- run : |
36
- make change-lang
37
- sed -i 's/ishocon2-app-base/${{ env.UNAME }}\/ishocon2-app-base/g' ./docker-compose.yml
38
- cat ./docker-compose.yml
39
41
- name : Set up Docker Buildx
40
42
uses : docker/setup-buildx-action@v3
41
43
- name : Login to Docker Hub
52
54
tags : ${{ env.UNAME }}/ishocon2-app-bench:latest
53
55
cache-from : type=gha
54
56
cache-to : type=gha,mode=max
55
- platforms : linux/amd64,linux/arm64,linux/arm64/v8
56
57
- name : Build and push base image
57
58
uses : docker/build-push-action@v5
58
59
with :
Original file line number Diff line number Diff line change @@ -3,11 +3,21 @@ ifeq ($(UNAME),)
3
3
UNAME = $(shell whoami)
4
4
endif
5
5
6
- ARCH = $(shell uname -m)
6
+ ifeq ($(ARCH ) ,)
7
+ ARCH = $(shell uname -m)
8
+ endif
7
9
8
10
UBUNTU_VERSION = 18.04
9
11
ifeq ($(ARCH ) , arm64)
10
12
BASE_IMAGE = arm64v8/ubuntu:$(UBUNTU_VERSION)
13
+ else ifeq ($(ARCH), aarch64)
14
+ BASE_IMAGE = arm64v8/ubuntu:$(UBUNTU_VERSION)
15
+ else ifeq ($(ARCH), armv7l)
16
+ BASE_IMAGE = armv7l/ubuntu:$(UBUNTU_VERSION)
17
+ else ifeq ($(ARCH), ppc64le)
18
+ BASE_IMAGE = ppc64le/ubuntu:$(UBUNTU_VERSION)
19
+ else ifeq ($(ARCH), s390x)
20
+ BASE_IMAGE = s390x/ubuntu:$(UBUNTU_VERSION)
11
21
else
12
22
BASE_IMAGE = ubuntu:$(UBUNTU_VERSION)
13
23
endif
@@ -19,7 +29,7 @@ build-base:
19
29
--build-arg BASE_IMAGE=$(BASE_IMAGE ) \
20
30
-f ./docker/app/base/Dockerfile \
21
31
-t $(LOCAL_ISHOCON_BASE_IMAGE ) \
22
- -t $(UNAME ) /ishocon2-app-base:latest . ;
32
+ -t $(UNAME ) /ishocon2-app-base:latest . --no-cache --progress=plain ;
23
33
24
34
build-bench :
25
35
docker build \
You can’t perform that action at this time.
0 commit comments