Skip to content

Commit

Permalink
ci: support only arm64, x86_64 or others
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 5, 2024
1 parent 77697d2 commit a14220a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build_and_push_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ jobs:
- "python"
- "ruby"
arch:
- "arm64"
- "arm64v8"
- "armv7l"
- "ppc64le"
- "s390x"
- "x86_64"
- "unknown"
env:
ISHOCON_APP_LANG: ${{ matrix.language }}
UNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
Expand Down
14 changes: 5 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ ifeq ($(ARCH),)
endif

UBUNTU_VERSION = 18.04
ifeq ($(ARCH), arm64)
BASE_IMAGE = arm64v8/ubuntu:$(UBUNTU_VERSION)
else ifeq ($(ARCH), aarch64)


ifeq ($(filter $(ARCH),arm64 aarch64),)
BASE_IMAGE = arm64v8/ubuntu:$(UBUNTU_VERSION)
else ifeq ($(ARCH), armv7l)
BASE_IMAGE = armv7l/ubuntu:$(UBUNTU_VERSION)
else ifeq ($(ARCH), ppc64le)
BASE_IMAGE = ppc64le/ubuntu:$(UBUNTU_VERSION)
else ifeq ($(ARCH), s390x)
BASE_IMAGE = s390x/ubuntu:$(UBUNTU_VERSION)
else ifeq ($(ARCH), x86_64)
BASE_IMAGE = amd64/ubuntu:$(UBUNTU_VERSION)
else
BASE_IMAGE = ubuntu:$(UBUNTU_VERSION)
endif
Expand Down

0 comments on commit a14220a

Please sign in to comment.