Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg-slim: build latest Pg version for the given major #65

Merged
merged 2 commits into from
Mar 27, 2024
Merged

Conversation

vrmiguel
Copy link
Member

Fetch the latest minor version for each major version supported

RUN tar xf postgresql-${PG_RELEASE}.tar.bz2
RUN git clone https://github.com/postgres/postgres.git && \
cd postgres && \
PG_RELEASE=$(git tag | grep '^REL_'${PG_MAJOR}'_' | grep -vE 'RC|BETA' | sort -V | tail -1 | sed 's/REL_//;s/_/./g') && \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples:

$ git tag | grep '^REL_14_' | grep -vE 'RC|BETA' | sort -V | tail -1 | sed 's/REL_//;s/_/./g'
14.11

$ git tag | grep '^REL_15_' | grep -vE 'RC|BETA' | sort -V | tail -1 | sed 's/REL_//;s/_/./g'
15.6

$ git tag | grep '^REL_16_' | grep -vE 'RC|BETA' | sort -V | tail -1 | sed 's/REL_//;s/_/./g'
16.2

@vrmiguel vrmiguel force-pushed the plat-321 branch 2 times, most recently from 8eb9338 to d6bd314 Compare March 27, 2024 05:54
@vrmiguel vrmiguel merged commit c886b8d into main Mar 27, 2024
14 of 16 checks passed
@vrmiguel vrmiguel deleted the plat-321 branch March 27, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants