Skip to content

Commit c2d4576

Browse files
committed
test / refactor
1 parent 597f7c4 commit c2d4576

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

.github/workflows/buildx.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ name: buildx-qemu-experimental-build
77
# Expecting: upstream "postgres" docker images for OS/ARCH=platforms
88
# [ check https://hub.docker.com/_/postgres/tags ]
99
#
10-
# Comments: 2022-09-07 ( with QEMU 7.0 )
11-
# 'linux/arm64' Postgres JIT is not working; ( SET JIT=OFF under the alpine test )
12-
# 'linux/ppc64le' Postgres JIT is not working; ( SET JIT=OFF under the alpine test )
10+
# Comments: ( with QEMU 7.0 / 2022-october )
11+
# 'linux/arm64' Postgres JIT is not working; ( SET JIT=OFF under the alpine test ; see alpine template )
12+
# 'linux/ppc64le' Postgres JIT is not working; ( SET JIT=OFF under the alpine test ; see alpine template )
1313
# 'linux/arm/v7' - debian: Unable to locate package postgresql-??-postgis-3;
1414
# 'linux/arm/v6' - debian: Unable to locate package postgresql-??-postgis-3;
1515
# 'linux/s390x' [alpine|debian] failed test.
@@ -35,7 +35,7 @@ jobs:
3535
matrix:
3636
# succesful tests matrix:
3737
platforms: ['linux/arm64','linux/arm/v7','linux/arm/v6','linux/386','linux/ppc64le']
38-
postgres: [ 15 ]
38+
postgres: [ 10, 15 ]
3939
postgis: ['3.3']
4040
variant: [alpine]
4141
include:
@@ -47,6 +47,15 @@ jobs:
4747
postgis: '3.3'
4848
variant: 'default'
4949
platforms: 'linux/ppc64le'
50+
- postgres: 10
51+
postgis: '3.3'
52+
variant: 'default'
53+
platforms: 'linux/arm64'
54+
- postgres: 10
55+
postgis: '3.3'
56+
variant: 'default'
57+
platforms: 'linux/ppc64le'
58+
5059

5160
name: ${{ matrix.platforms }} ${{ matrix.postgres }}-${{ matrix.postgis }} ${{ matrix.variant }}
5261
runs-on: ubuntu-latest
@@ -57,7 +66,7 @@ jobs:
5766
# Not the default (main) workflow!
5867
WORKFLOW: buildx
5968
# Docker image tag postfix
60-
TAG_POSTFIX: '-experimental'
69+
TAG_POSTFIX: '-buildx'
6170

6271
steps:
6372

Makefile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
# Used environmnet variables:
3+
# VERSION: 15-3.3,14-3.3,13-3.3, ...
4+
# VARIANT: <<empty>>, alpine ( debian or alpine )
5+
# WORKFLOW: main,buildx ( workflow id )
6+
# TAG_POSTFIX: <<empty>>,'-experimental' ( Docker image tag postfix )
7+
#
8+
29
# When processing the rules for tagging and pushing container images with the
310
# "latest" tag, the following variable will be the version that is considered
411
# to be the latest.
@@ -13,13 +20,14 @@ do_alpine=true
1320

1421
# There are multiple workflows in the .github/workflows/*
1522
# The default WORKFLOW is the main.yml ( amd64 ) but can be overriden via environment variables.
16-
1723
WORKFLOW ?= main
18-
TAG_POSTFIX=
1924

20-
# IF this is not the 'main' workflow THEN We add special image tag postfix. ( -experimental )
21-
ifneq ($(WORKFLOW),main)
22-
TAG_POSTFIX=-experimental
25+
# IF this is NOT the 'main' workflow THEN we add special image tag postfix.
26+
# ( -experimental ; it can be overriden via environment variables. )
27+
ifeq ($(WORKFLOW),main)
28+
TAG_POSTFIX ?=
29+
else
30+
TAG_POSTFIX ?= -experimental
2331
endif
2432

2533
# The following logic evaluates VERSION and VARIANT variables that may have

0 commit comments

Comments
 (0)