forked from repo-mirrors/cnpg-postgres-containers
chore: add system
images to docker-bake.hcl
(#282)
This change extends the bake build process by introducing the system image flavour. The system image is derived from the existing standard image and includes Barman Cloud support. Closes #283 Closes #286 Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com> Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> Co-authored-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com> Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
committed by
GitHub
parent
3ea082111e
commit
fdc8010750
53
.github/workflows/bake.yml
vendored
Normal file
53
.github/workflows/bake.yml
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
name: Bake Images
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Build images once a week, on Mondays
|
||||
- cron: 0 8 * * 1
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
environment:
|
||||
type: choice
|
||||
options:
|
||||
- testing
|
||||
- production
|
||||
default: testing
|
||||
description: "Choose the environment to bake the target for"
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
get_versions:
|
||||
name: Get PostgreSQL versions
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
contents: read
|
||||
outputs:
|
||||
versions: ${{ steps.get_versions.outputs.versions }}
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
|
||||
|
||||
- name: Get supported PostgreSQL versions
|
||||
id: get_versions
|
||||
run: |
|
||||
VERSIONS="$(sed -n '/postgreSQLVersions = \[/,/\]/ s/.*"\(.*\)\..*".*/\"\1\"/p' docker-bake.hcl | xargs echo | tr ' ' ',')"
|
||||
echo "PostgreSQL versions: [$VERSIONS]"
|
||||
echo "versions=[$VERSIONS]" >> "$GITHUB_OUTPUT"
|
||||
|
||||
Bake:
|
||||
name: Bake
|
||||
needs: get_versions
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
id-token: write
|
||||
security-events: write
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
version: ${{ fromJson(needs.get_versions.outputs.versions) }}
|
||||
uses: ./.github/workflows/bake_targets.yml
|
||||
with:
|
||||
environment: ${{ github.event.inputs.environment }}
|
||||
postgresql_version: ${{ matrix.version }}
|
Reference in New Issue
Block a user