-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added workflows and license
- Loading branch information
Showing
7 changed files
with
926 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/.github @cherts | ||
/.github/CODEOWNERS @cherts | ||
/.github/workflows/** @cherts |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: cherts | ||
custom: ["https://paypal.me/mikhailgrigorev1981?locale.x=en_US"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
--- | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "v1.*" | ||
|
||
jobs: | ||
Build: | ||
name: Build-Docker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
logout: true | ||
|
||
- name: Build and push image cherts/pg-repack:1.4.5 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
cache-from: type=gha,scope=pg-repack | ||
cache-to: type=gha,mode=max,scope=pg-repack | ||
context: ./12 | ||
file: ./12/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: cherts/pg-repack:1.4.5 | ||
|
||
- name: Build and push image cherts/pg-repack:1.4.6 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
cache-from: type=gha,scope=pg-repack | ||
cache-to: type=gha,mode=max,scope=pg-repack | ||
context: ./13 | ||
file: ./13/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: cherts/pg-repack:1.4.6 | ||
|
||
- name: Build and push image cherts/pg-repack:1.4.7 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
cache-from: type=gha,scope=pg-repack | ||
cache-to: type=gha,mode=max,scope=pg-repack | ||
context: ./14 | ||
file: ./14/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: cherts/pg-repack:1.4.7 | ||
|
||
- name: Build and push image cherts/pg-repack:1.4.8 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
cache-from: type=gha,scope=pg-repack | ||
cache-to: type=gha,mode=max,scope=pg-repack | ||
context: ./15 | ||
file: ./15/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: cherts/pg-repack:1.4.8 | ||
|
||
- name: Build and push image cherts/pg-repack:1.5.0 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
cache-from: type=gha,scope=pg-repack | ||
cache-to: type=gha,mode=max,scope=pg-repack | ||
context: ./16 | ||
file: ./16/Dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
tags: cherts/pg-repack:1.5.0 |
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
Oops, something went wrong.