Skip to content

Commit

Permalink
chore: set major version to 18
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
  • Loading branch information
NiccoloFei authored and gbartolini committed Aug 30, 2024
1 parent 25f0043 commit b106721
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
KIND_VERSION: "v0.23.0"
K8S_VERSION: "v1.30.2"
REGISTRY: "ghcr.io/${{ github.repository_owner }}/postgresql-trunk"
POSTGRES_VERSION: "17-devel"
TAG: "${{ vars.PG_MAJOR }}-devel"

defaults:
run:
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Set Global Env Vars
id: set-env
run: |
postgres_img="${{ env.REGISTRY }}:${{ env.POSTGRES_VERSION }}"
postgres_img="${{ env.REGISTRY }}:${{ env.TAG }}"
# The version of operator to upgrade FROM, in the rolling upgrade E2E test
e2e_pre_rolling_update_image="${postgres_img}-1"
Expand Down Expand Up @@ -158,18 +158,25 @@ jobs:
# generate E2E test summary in the follow-up job 'summarize-e2e-tests'
- name: Create individual artifact for each E2E test
if: (always() && !cancelled())
env:
RUNNER: "local"
POSTGRES_VERSION: "${{ vars.PG_MAJOR }}"
RUN_ID: "${{ github.run_id }}"
MATRIX: "${{ env.ID }}-${{ env.POSTGRES_KIND }}-${{ vars.PG_MAJOR }}"
REPOSITORY: "${{ github.repository }}"
BRANCH_NAME: "${GITHUB_REF#refs/heads/}"
GIT_REF: "${{ github.ref_name }}"
run: |
set +x
echo '{"runner": "local", "postgres": "${{env.POSTGRES_VERSION}}", "postgres_kind": "${{env.POSTGRES_KIND}}", "kubernetes": "${{env.K8S_VERSION}}", "runid": ${{ github.run_id }}, "id": "local-PostgreSQL"-${{ env.POSTGRES_VERSION }}", "repo": "${{github.repository}}", "branch": "${GITHUB_REF#refs/heads/}", "refname": "${{github.ref_name}}" }'
python .github/generate-test-artifacts.py \
-o testartifacts-${{ env.ID }} \
-f tests/e2e/out/report.json \
-m '{"runner": "local", "postgres": "${{env.POSTGRES_VERSION}}", "postgres_kind": "${{env.POSTGRES_KIND}}", "kubernetes": "${{env.K8S_VERSION}}", "runid": ${{ github.run_id }}, "id": "${{ env.ID }}", "repo": "${{github.repository}}", "branch": "${GITHUB_REF#refs/heads/}", "refname": "${{github.ref_name}}" }'
--environment=true
if [ -f tests/e2e/out/upgrade_report.json ]; then
python .github/generate-test-artifacts.py \
-o testartifacts-${{ env.ID }} \
-f tests/e2e/out/upgrade_report.json \
-m '{"runner": "local", "postgres": "${{env.POSTGRES_VERSION}}", "postgres_kind": "${{env.POSTGRES_KIND}}", "kubernetes": "${{env.K8S_VERSION}}", "runid": ${{ github.run_id }}, "id": "${{ env.ID }}", "repo": "${{github.repository}}", "branch": "${GITHUB_REF#refs/heads/}", "refname": "${{github.ref_name}}" }'
--environment=true
fi
- name: Archive test artifacts
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ FROM debian:bookworm-slim

ARG PG_REPO=https://git.postgresql.org/git/postgresql.git
ARG PG_BRANCH=master
ARG PG_MAJOR=18

# Do not split the description, otherwise we will see a blank space in the labels
LABEL name="PostgreSQL Container Images" \
vendor="The CloudNativePG Contributors" \
version="17-devel" \
version="$PG_MAJOR-devel" \
summary="PostgreSQL Container images." \
description="This Docker image contains a snapshot image of PostgreSQL compiled from Master and Barman Cloud based on Debian bookworm-slim."

Expand Down Expand Up @@ -94,7 +95,7 @@ ENV LANG en_US.utf8

RUN mkdir /docker-entrypoint-initdb.d

ENV PG_MAJOR 17
ENV PG_MAJOR $PG_MAJOR
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin

# Build PostgreSQL
Expand Down

0 comments on commit b106721

Please sign in to comment.