postgis / docker-postgis

Docker image for PostGIS
https://hub.docker.com/r/postgis/postgis/
MIT License
1.38k stars 465 forks source link

experimental buildx.yml #312

Open ImreSamu opened 2 years ago

ImreSamu commented 2 years ago

PROPOSAL ( updated at 2022-10-16 )

new workflow github/workflows/buildx.yml

The proposed buildx.yml matrix :

Experimental linux/arm64 images

Platform DockerHub image PG PostGIS OS
linux/arm64 postgis/postgis:10-3.2-experimental 10 3.2 debian:bullseye
linux/arm64 postgis/postgis:11-3.3-experimental 11 3.3 debian:bullseye
linux/arm64 postgis/postgis:12-3.3-experimental 12 3.3 debian:bullseye
linux/arm64 postgis/postgis:13-3.3-experimental 13 3.3 debian:bullseye
linux/arm64 postgis/postgis:14-3.3-experimental 14 3.3 debian:bullseye
linux/arm64 postgis/postgis:15-3.3-experimental 15 3.3 debian:bullseye
linux/arm64 postgis/postgis:15-3.3-alpine-experimental 15 3.3 alpine:3.16

Other Experimental images

Platform DockerHub image PG PostGIS OS
linux/arm/v7 postgis/postgis:15-3.3-alpine-experimental 15 3.3 alpine:3.16
linux/arm/v6 postgis/postgis:15-3.3-alpine-experimental 15 3.3 alpine:3.16
linux/386 postgis/postgis:15-3.3-alpine-experimental 15 3.3 alpine:3.16
linux/ppc64le postgis/postgis:15-3.3-alpine-experimental 15 3.3 alpine:3.16
linux/ppc64le postgis/postgis:15-3.3-experimental 15 3.3 debian:bullseye

minimal post-tests:

The default $POSTGRES_TEST_TRIES; $POSTGRES_TEST_SLEEP is not enough for the emulation so I added a higher value for the buildx.yml

          POSTGRES_TEST_TRIES: 42
          POSTGRES_TEST_SLEEP: 2

Lesson learned / improvements:

NOW: using different tagging for the "buildx build" !

NEW environment variables: ( Makefile, workflow )

IMPORTANT:

ImreSamu commented 2 years ago

imho review ready ( cc @phillipross )

ImreSamu commented 2 years ago

A lot of changes have been made( Postgis 3.3; Postgres 15 Beta4 ) and will have to be implemented here. ( so the current PR is not yet ready )

phillipross commented 2 years ago

I agree that a separate tagging scheme should be used for images produced by this alternate workflow for the time being. It looks like there's still a bunch of things to figure out, but this is a great start!

If it's possible to still have CI runs occur for PRs in draft mode, maybe you can switch this PR to draft mode so that it doesn't get accidentally merged?

ImreSamu commented 2 years ago

PR converted to "draft"

I agree that a separate tagging scheme should be used for images produced by this alternate workflow for the time being.

ok . . I will add an experimental postfix .. ( example 14-3.3-experimental ) and I am open to any other suggestions.

ImreSamu commented 1 year ago

A lot of improvements / changes :

important: the docker push part is not tested!

ImreSamu commented 1 year ago

Added some new ENV vars + other small improvements;

example;

 env:
   ALPINE_VERSION: 3.16
   WORKFLOW: buildx
   REPO_NAME: postgis
   IMAGE_NAME: postgis
   VERSION: 15-3.3
   VARIANT: alpine
   TAG_POSTFIX: -experimental

Ready to review ...