postgresql-containers/.forgejo/workflows/build.yml
Ryan Voots 7745f13ffe
All checks were successful
/ build-ltss (bookworm, 9cb845e, 17) (push) Successful in 2m24s
/ build-base (bookworm, 16) (push) Successful in 2m42s
/ build-base (bookworm, 15) (push) Successful in 2m48s
/ build-base (bookworm, 17) (push) Successful in 2m48s
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 16, 3.5.2, 2.19.3) (push) Successful in 3m57s
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 17, 3.5.2, 2.19.3) (push) Successful in 3m54s
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 15, 3.5.2, 2.19.3) (push) Successful in 3m59s
/ build-ltss (bookworm, 9cb845e, 15) (push) Successful in 2m11s
/ build-ltss (bookworm, 9cb845e, 16) (push) Successful in 2m24s
wrong repo on forgejo
2025-05-09 10:08:57 -04:00

181 lines
5.9 KiB
YAML

on:
push:
jobs:
build-base:
strategy:
fail_fast: false
matrix:
PG_MAJOR_VERSION:
- 17
- 16
- 15
DEB_RELEASE:
- bookworm
runs-on: self-hosted
steps:
- name: Setup metadata
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.simcop2387.info/simcop2387/postgresql-container-base
tags: |
type=raw,value=${{ matrix.PG_MAJOR_VERSION }}-${{ matrix.DEB_RELEASE }}
type=raw,value=${{ matrix.PG_MAJOR_VERSION }}-${{ matrix.DEB_RELEASE }}-{{ date 'YYYY-MM-DD' }}
- name: checkout
uses: actions/checkout@v4
- name: buildx-base
uses: https://github.com/docker/setup-buildx-action@v3
- name: setup formatted date
run: echo $( date -I ) ; echo FMT_DATE=$( date -I ) >> $GITHUB_ENV
- name: Login to Docker Hub
uses: https://github.com/docker/login-action@v3
with:
registry: gitea.simcop2387.info
username: simcop2387
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: https://github.com/docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
context: base/
dockerfile: base/Dockerfile
build-args: |
PG_MAJOR_VERSION=${{ matrix.PG_MAJOR_VERSION }}
DEB_RELEASE=${{ matrix.DEB_RELEASE }}
FMT_DATE=${{ env.FMT_DATE }}
build-general:
needs: [build-base]
strategy:
fail_fast: false
matrix:
PG_MAJOR_VERSION:
- 17
- 16
- 15
DEB_RELEASE:
- bookworm
POSTGIS_VERSiON:
- 3.5.2
TIMESCALEDB_VERSION:
- 2.19.3
HYPOPG_VERSION:
- 1.4.1
PGVECTOR_VERSION:
- v0.8.0
PG_CRON_VERSION:
- v0.8.0
runs-on: self-hosted
steps:
- name: Setup metadata
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.simcop2387.info/simcop2387/postgresql-container-general
tags: |
type=raw,value=${{ matrix.PG_MAJOR_VERSION }}-${{ matrix.DEB_RELEASE }}
type=raw,value=${{ matrix.PG_MAJOR_VERSION }}-${{ matrix.DEB_RELEASE }}-${{ matrix.POSTGIS_VERSiON }}-${{ matrix.TIMESCALEDB_VERSION }}-${{ matrix.HYPOPG_VERSION }}-${{ matrix.PGVECTOR_VERSION }}
type=raw,value=${{ matrix.PG_MAJOR_VERSION }}-${{ matrix.DEB_RELEASE }}-${{ matrix.POSTGIS_VERSiON }}-${{ matrix.TIMESCALEDB_VERSION }}-${{ matrix.HYPOPG_VERSION }}-${{ matrix.PGVECTOR_VERSION }}-{{ date 'YYYY-MM-DD' }}
- name: checkout
uses: actions/checkout@v4
- name: buildx-base
uses: https://github.com/docker/setup-buildx-action@v3
- name: setup formatted date
run: echo $( date -I ) ; echo FMT_DATE=$( date -I ) >> $GITHUB_ENV
- name: Login to Docker Hub
uses: https://github.com/docker/login-action@v3
with:
registry: gitea.simcop2387.info
username: simcop2387
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: https://github.com/docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
context: general/
dockerfile: general/Dockerfile
target: final
no-cache: true
build-args: |
PG_MAJOR_VERSION=${{ matrix.PG_MAJOR_VERSION }}
DEB_RELEASE=${{ matrix.DEB_RELEASE }}
FMT_DATE=${{ env.FMT_DATE }}
POSTGIS_VERSiON=${{ matrix.POSTGIS_VERSiON }}
TO<ESCALEDB_VERSION=${{ matrix.TO<ESCALEDB_VERSION }}
HYPOPG_VERSION=${{ matrix.HYPOPG_VERSION }}
PGVECTOR_VERSION=${{ matrix.PGVECTOR_VERSION }}
PG_CRON_VERSION=${{ matrix.PG_CRON_VERSION }}
build-ltss:
needs: [build-general]
strategy:
fail_fast: false
matrix:
PG_MAJOR_VERSION:
- 17
- 16
- 15
DEB_RELEASE:
- bookworm
INFLUXDB_FDW_VERSION:
- 9cb845e
runs-on: self-hosted
steps:
- name: Setup metadata
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.simcop2387.info/simcop2387/postgresql-container-ltss
tags: |
type=raw,value=${{ matrix.PG_MAJOR_VERSION }}-${{ matrix.DEB_RELEASE }}
type=raw,value=${{ matrix.PG_MAJOR_VERSION }}-${{ matrix.DEB_RELEASE }}-${{ matrix.INFLUXDB_FDW_VERSION}}-{{ date 'YYYY-MM-DD' }}
- name: checkout
uses: actions/checkout@v4
- name: buildx-base
uses: https://github.com/docker/setup-buildx-action@v3
- name: setup formatted date
run: echo $( date -I ) ; echo FMT_DATE=$( date -I ) >> $GITHUB_ENV
- name: Login to Docker Hub
uses: https://github.com/docker/login-action@v3
with:
registry: gitea.simcop2387.info
username: simcop2387
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: https://github.com/docker/build-push-action@v6
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
context: ltss/
dockerfile: ltss/Dockerfile
target: final
no-cache: true
build-args: |
PG_MAJOR_VERSION=${{ matrix.PG_MAJOR_VERSION }}
DEB_RELEASE=${{ matrix.DEB_RELEASE }}
FMT_DATE=${{ env.FMT_DATE }}
INFLUXDB_FDW_VERSION=${{ matrix.INFLUXDB_FDW_VERSION }}