kopia lustrzana https://github.com/kartoza/docker-postgis
rodzic
b1a32de5e2
commit
c4fa12fd1b
|
@ -1,19 +1,5 @@
|
||||||
name: build-latest
|
name: build-latest
|
||||||
on:
|
on:
|
||||||
# workflow_dispatch:
|
|
||||||
# inputs:
|
|
||||||
# distro:
|
|
||||||
# description: Base image distro
|
|
||||||
# required: true
|
|
||||||
# default: debian
|
|
||||||
# imageVersion:
|
|
||||||
# description: Base distro image version/release
|
|
||||||
# required: true
|
|
||||||
# default: bookworm
|
|
||||||
# imageVariant:
|
|
||||||
# description: Base image variant
|
|
||||||
# required: true
|
|
||||||
# default: slim
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
|
@ -32,6 +18,10 @@ jobs:
|
||||||
- 3
|
- 3
|
||||||
postgisMinorRelease:
|
postgisMinorRelease:
|
||||||
- 4
|
- 4
|
||||||
|
imageVersion:
|
||||||
|
- imageDistro: debian
|
||||||
|
imageDistroVersion: bookworm
|
||||||
|
imageDistroVariant: slim
|
||||||
scenario:
|
scenario:
|
||||||
- datadir_init
|
- datadir_init
|
||||||
- streaming_replication
|
- streaming_replication
|
||||||
|
@ -40,10 +30,6 @@ jobs:
|
||||||
- logical_replication
|
- logical_replication
|
||||||
- init_scripts
|
- init_scripts
|
||||||
- multiple_databases
|
- multiple_databases
|
||||||
include:
|
|
||||||
- distro: debian
|
|
||||||
imageVersion: bookworm
|
|
||||||
imageVariant: slim
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
@ -60,9 +46,9 @@ jobs:
|
||||||
load: true
|
load: true
|
||||||
tags: kartoza/postgis:manual-build
|
tags: kartoza/postgis:manual-build
|
||||||
build-args: |
|
build-args: |
|
||||||
DISTRO=${{ matrix.distro }}
|
DISTRO=${{ matrix.imageVersion.imageDistro }}
|
||||||
IMAGE_VERSION=${{ matrix.imageVersion }}
|
IMAGE_VERSION=${{ matrix.imageVersion.imageDistroVersion }}
|
||||||
IMAGE_VARIANT=${{ matrix.imageVariant }}
|
IMAGE_VARIANT=${{ matrix.imageVersion.imageDistroVariant }}
|
||||||
LANGS=en_US.UTF-8,id_ID.UTF-8
|
LANGS=en_US.UTF-8,id_ID.UTF-8
|
||||||
GENERATE_ALL_LOCALE=0
|
GENERATE_ALL_LOCALE=0
|
||||||
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
|
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
|
||||||
|
@ -95,10 +81,10 @@ jobs:
|
||||||
- 3
|
- 3
|
||||||
postgisMinorRelease:
|
postgisMinorRelease:
|
||||||
- 4
|
- 4
|
||||||
include:
|
imageVersion:
|
||||||
- distro: debian
|
- imageDistro: debian
|
||||||
imageVersion: bookworm
|
imageDistroVersion: bookworm
|
||||||
imageVariant: slim
|
imageDistroVariant: slim
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
@ -130,9 +116,9 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
${{ steps.docker_meta.outputs.tags }}-${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}
|
${{ steps.docker_meta.outputs.tags }}-${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}
|
||||||
build-args: |
|
build-args: |
|
||||||
DISTRO=${{ matrix.distro }}
|
DISTRO=${{ matrix.imageVersion.imageDistro }}
|
||||||
IMAGE_VERSION=${{ matrix.imageVersion }}
|
IMAGE_VERSION=${{ matrix.imageVersion.imageDistroVersion }}
|
||||||
IMAGE_VARIANT=${{ matrix.imageVariant }}
|
IMAGE_VARIANT=${{ matrix.imageVersion.imageDistroVariant }}
|
||||||
LANGS=en_US.UTF-8,id_ID.UTF-8
|
LANGS=en_US.UTF-8,id_ID.UTF-8
|
||||||
GENERATE_ALL_LOCALE=0
|
GENERATE_ALL_LOCALE=0
|
||||||
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
|
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
|
||||||
|
|
|
@ -1,19 +1,6 @@
|
||||||
name: deploy-image
|
name: deploy-image
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# inputs:
|
|
||||||
# distro:
|
|
||||||
# description: Base image distro
|
|
||||||
# required: true
|
|
||||||
# default: debian
|
|
||||||
# imageVersion:
|
|
||||||
# description: Base distro image version/release
|
|
||||||
# required: true
|
|
||||||
# default: bookworm
|
|
||||||
# imageVariant:
|
|
||||||
# description: Base image variant
|
|
||||||
# required: true
|
|
||||||
# default: slim
|
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows:
|
workflows:
|
||||||
- build-latest
|
- build-latest
|
||||||
|
@ -34,10 +21,10 @@ jobs:
|
||||||
- 3
|
- 3
|
||||||
postgisMinorRelease:
|
postgisMinorRelease:
|
||||||
- 4
|
- 4
|
||||||
include:
|
imageVersion:
|
||||||
- distro: debian
|
- imageDistro: debian
|
||||||
imageVersion: bookworm
|
imageDistroVersion: bookworm
|
||||||
imageVariant: slim
|
imageDistroVariant: slim
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
@ -69,15 +56,15 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKERHUB_REPO }}/postgis:base
|
${{ secrets.DOCKERHUB_REPO }}/postgis:base
|
||||||
${{ secrets.DOCKERHUB_REPO }}/postgis:base-${{ matrix.distro }}-${{ matrix.imageVersion }}-${{ matrix.imageVariant }}
|
${{ secrets.DOCKERHUB_REPO }}/postgis:base-${{ matrix.imageVersion.imageDistro }}-${{ matrix.imageVersion.imageDistroVersion }}-${{ matrix.imageVersion.imageDistroVariant }}
|
||||||
build-args: |
|
build-args: |
|
||||||
DISTRO=${{ matrix.distro }}
|
DISTRO=${{ matrix.imageVersion.imageDistro }}
|
||||||
IMAGE_VERSION=${{ matrix.imageVersion }}
|
IMAGE_VERSION=${{ matrix.imageVersion.imageDistroVersion }}
|
||||||
IMAGE_VARIANT=${{ matrix.imageVariant }}
|
IMAGE_VARIANT=${{ matrix.imageVersion.imageDistroVariant }}
|
||||||
GENERATE_ALL_LOCALE=1
|
GENERATE_ALL_LOCALE=1
|
||||||
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
|
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
|
||||||
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
|
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
|
||||||
POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }}
|
POSTGIS_MINOR_VERSION=${{ matrix.postgisMinorVersion }}
|
||||||
cache-from: |
|
cache-from: |
|
||||||
type=gha,scope=test
|
type=gha,scope=test
|
||||||
type=gha,scope=prod
|
type=gha,scope=prod
|
||||||
|
@ -99,13 +86,13 @@ jobs:
|
||||||
${{ secrets.DOCKERHUB_REPO }}/postgis:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}
|
${{ secrets.DOCKERHUB_REPO }}/postgis:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}
|
||||||
${{ secrets.DOCKERHUB_REPO }}/postgis:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}--v${{ steps.current_date.outputs.formatted }}
|
${{ secrets.DOCKERHUB_REPO }}/postgis:${{ matrix.postgresMajorVersion }}-${{ matrix.postgisMajorVersion }}.${{ matrix.postgisMinorRelease }}--v${{ steps.current_date.outputs.formatted }}
|
||||||
build-args: |
|
build-args: |
|
||||||
DISTRO=${{ matrix.distro }}
|
DISTRO=${{ matrix.imageVersion.imageDistro }}
|
||||||
IMAGE_VERSION=${{ matrix.imageVersion }}
|
IMAGE_VERSION=${{ matrix.imageVersion.imageDistroVersion }}
|
||||||
IMAGE_VARIANT=${{ matrix.imageVariant }}
|
IMAGE_VARIANT=${{ matrix.imageVersion.imageDistroVariant }}
|
||||||
GENERATE_ALL_LOCALE=1
|
GENERATE_ALL_LOCALE=1
|
||||||
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
|
POSTGRES_MAJOR_VERSION=${{ matrix.postgresMajorVersion }}
|
||||||
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
|
POSTGIS_MAJOR_VERSION=${{ matrix.postgisMajorVersion }}
|
||||||
POSTGIS_MINOR_VERSION=${{ matrix.postgresMinorVersion }}
|
POSTGIS_MINOR_VERSION=${{ matrix.postgisMinorVersion }}
|
||||||
cache-from: |
|
cache-from: |
|
||||||
type=gha,scope=test
|
type=gha,scope=test
|
||||||
type=gha,scope=prod
|
type=gha,scope=prod
|
||||||
|
|
Ładowanie…
Reference in New Issue