Upgrading postgres versions #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Default | |
on: | |
push: | |
paths: | |
- "12/**" | |
- "13/**" | |
- "14/**" | |
- "15/**" | |
- "16/**" | |
- "build.sh" | |
pull_request: | |
paths: | |
- "12/**" | |
- "13/**" | |
- "14/**" | |
- "15/**" | |
- "16/**" | |
- "build.sh" | |
jobs: | |
postgres-12: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set variables | |
run: | | |
echo "PGREPACK_VERSION=1.4.5" >> $GITHUB_ENV | |
echo "PG_VERSION=12" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./${{ env.PG_VERSION }} | |
load: true | |
file: ./${{ env.PG_VERSION }}/Dockerfile | |
platforms: linux/amd64 | |
tags: cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Inspect image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker image inspect cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Test image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker run --rm --name pg_repack cherts/pg-repack:${{ env.PGREPACK_VERSION }} --version | |
postgres-13: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set variables | |
run: | | |
echo "PGREPACK_VERSION=1.4.6" >> $GITHUB_ENV | |
echo "PG_VERSION=13" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./${{ env.PG_VERSION }} | |
load: true | |
file: ./${{ env.PG_VERSION }}/Dockerfile | |
platforms: linux/amd64 | |
tags: cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Inspect image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker image inspect cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Test image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker run --rm --name pg_repack cherts/pg-repack:${{ env.PGREPACK_VERSION }} --version | |
postgres-14: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set variables | |
run: | | |
echo "PGREPACK_VERSION=1.4.7" >> $GITHUB_ENV | |
echo "PG_VERSION=14" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./${{ env.PG_VERSION }} | |
load: true | |
file: ./${{ env.PG_VERSION }}/Dockerfile | |
platforms: linux/amd64 | |
tags: cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Inspect image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker image inspect cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Test image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker run --rm --name pg_repack cherts/pg-repack:${{ env.PGREPACK_VERSION }} --version | |
postgres-15: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set variables | |
run: | | |
echo "PGREPACK_VERSION=1.4.8" >> $GITHUB_ENV | |
echo "PG_VERSION=15" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./${{ env.PG_VERSION }} | |
load: true | |
file: ./${{ env.PG_VERSION }}/Dockerfile | |
platforms: linux/amd64 | |
tags: cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Inspect image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker image inspect cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Test image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker run --rm --name pg_repack cherts/pg-repack:${{ env.PGREPACK_VERSION }} --version | |
postgres-16: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set variables | |
run: | | |
echo "PGREPACK_VERSION=1.5.0" >> $GITHUB_ENV | |
echo "PG_VERSION=16" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
uses: docker/build-push-action@v5 | |
with: | |
context: ./${{ env.PG_VERSION }} | |
load: true | |
file: ./${{ env.PG_VERSION }}/Dockerfile | |
platforms: linux/amd64 | |
tags: cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Inspect image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker image inspect cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
- name: Test image cherts/pg-repack:${{ env.PGREPACK_VERSION }} | |
run: | | |
docker run --rm --name pg_repack cherts/pg-repack:${{ env.PGREPACK_VERSION }} --version |