Skip to content

Commit c70132a

Browse files
committed
refactor ...
1 parent 966aa2a commit c70132a

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.github/workflows/arm.yml renamed to .github/workflows/buildx.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,28 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
#
20-
platforms: ['linux/arm64','linux/arm/v7','linux/arm/v6','linux/386','linux/ppc64le']
20+
platforms: ['linux/arm64','linux/arm/v7','linux/arm/v6','linux/386','linux/ppc64le','linux/mips64le','linux/s390x']
2121
#
22-
#platforms: ['linux/arm64','linux/arm/v7','linux/arm/v5','linux/386','linux/mips64le','linux/ppc64le','linux/s390x']
22+
#platforms: ['linux/arm64','linux/arm/v7','linux/arm/v5','linux/386','linux/mips64le','linux/ppc64le','linux/s390x']
2323
# comments:
2424
# 'linux/arm/v7' - default/debian: Unable to locate package postgresql-14-postgis-3;
2525
#
2626
postgres: [14]
2727
postgis: ['3.2']
28-
variant: [default, alpine]
28+
variant: [alpine]
2929
include:
30-
- postgres: 15beta3
31-
postgis: '3.3.0rc2'
32-
variant: 'alpine'
30+
31+
- postgres: 14
32+
postgis: '3.2'
33+
variant: 'default'
3334
platforms: 'linux/arm64'
3435

36+
- postgres: 14
37+
postgis: '3.2'
38+
variant: 'default'
39+
platforms: linux/ppc64le'
40+
41+
3542
# - postgres: 14
3643
# postgis: '3.2'
3744
# variant: 'alpine'
@@ -81,7 +88,7 @@ jobs:
8188

8289
- if: ${{ env.VARIANT == 'alpine' }}
8390
run: docker pull --platform=${{ matrix.platforms }} postgres:${{ matrix.postgres }}-alpine3.16 && docker inspect postgres:${{ matrix.postgres }}-alpine3.16
84-
env:
91+
env:
8592
DOCKER_DEFAULT_PLATFORM: ${{ matrix.platforms }}
8693
PLATFORM: ${{ matrix.platforms }}
8794

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ ifeq ($(do_default),true)
5151
endif
5252

5353

54-
PLATFORM ?= ${PLATFORM}
55-
5654
# The repository and image names default to the official but can be overriden
5755
# via environment variables.
5856
REPO_NAME ?= postgis
@@ -79,11 +77,11 @@ update:
7977
define build-version
8078
build-$1:
8179
ifeq ($(do_default),true)
82-
$(DOCKER) build --pull --platform=$(PLATFORM) --network=host -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1) $1
80+
$(DOCKER) build --pull -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1) $1
8381
endif
8482
ifeq ($(do_alpine),true)
8583
ifneq ("$(wildcard $1/alpine)","")
86-
$(DOCKER) build --pull --platform=$(PLATFORM) --network=host --shm-size=1g --ulimit memlock=-1 -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1)-alpine $1/alpine
84+
$(DOCKER) build --pull -t $(REPO_NAME)/$(IMAGE_NAME):$(shell echo $1)-alpine $1/alpine
8785
endif
8886
endif
8987
endef

0 commit comments

Comments
 (0)