Skip to content

Commit e64dcf6

Browse files
authored
chore: set major version to 18 (#48)
Closes #45 Signed-off-by: Niccolò Fei <[email protected]>
1 parent 3fb06b6 commit e64dcf6

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/continuous-delivery.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
KIND_VERSION: "v0.23.0"
1616
K8S_VERSION: "v1.30.2"
1717
REGISTRY: "ghcr.io/${{ github.repository_owner }}/postgresql-trunk"
18-
POSTGRES_VERSION: "17-devel"
18+
TAG: "${{ vars.PG_MAJOR }}-devel"
1919

2020
defaults:
2121
run:
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set Global Env Vars
3737
id: set-env
3838
run: |
39-
postgres_img="${{ env.REGISTRY }}:${{ env.POSTGRES_VERSION }}"
39+
postgres_img="${{ env.REGISTRY }}:${{ env.TAG }}"
4040
# The version of operator to upgrade FROM, in the rolling upgrade E2E test
4141
e2e_pre_rolling_update_image="${postgres_img}-1"
4242
@@ -158,18 +158,25 @@ jobs:
158158
# generate E2E test summary in the follow-up job 'summarize-e2e-tests'
159159
- name: Create individual artifact for each E2E test
160160
if: (always() && !cancelled())
161+
env:
162+
RUNNER: "local"
163+
POSTGRES_VERSION: "${{ vars.PG_MAJOR }}"
164+
RUN_ID: "${{ github.run_id }}"
165+
MATRIX: "${{ env.ID }}-${{ env.POSTGRES_KIND }}-${{ vars.PG_MAJOR }}"
166+
REPOSITORY: "${{ github.repository }}"
167+
BRANCH_NAME: "${GITHUB_REF#refs/heads/}"
168+
GIT_REF: "${{ github.ref_name }}"
161169
run: |
162170
set +x
163-
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}}" }'
164171
python .github/generate-test-artifacts.py \
165172
-o testartifacts-${{ env.ID }} \
166173
-f tests/e2e/out/report.json \
167-
-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}}" }'
174+
--environment=true
168175
if [ -f tests/e2e/out/upgrade_report.json ]; then
169176
python .github/generate-test-artifacts.py \
170177
-o testartifacts-${{ env.ID }} \
171178
-f tests/e2e/out/upgrade_report.json \
172-
-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}}" }'
179+
--environment=true
173180
fi
174181
175182
- name: Archive test artifacts

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ FROM debian:bookworm-slim
1818

1919
ARG PG_REPO=https://git.postgresql.org/git/postgresql.git
2020
ARG PG_BRANCH=master
21+
ARG PG_MAJOR=18
2122

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

@@ -94,7 +95,7 @@ ENV LANG en_US.utf8
9495

9596
RUN mkdir /docker-entrypoint-initdb.d
9697

97-
ENV PG_MAJOR 17
98+
ENV PG_MAJOR $PG_MAJOR
9899
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
99100

100101
# Build PostgreSQL

0 commit comments

Comments
 (0)