Skip to content

Commit

Permalink
Add PG 17 ext (#21)
Browse files Browse the repository at this point in the history
* Update build-docker.yml
* Update Sync Jobs
* split PG build steps
  • Loading branch information
haobibo authored Nov 4, 2024
1 parent a1480f9 commit 6d0eae2
Showing 1 changed file with 30 additions and 12 deletions.
42 changes: 30 additions & 12 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ name: build-docker-images

on:
push:
branches: [ main ]
paths-ignore:
- "*.md"
branches: [ "main" ]
paths-ignore: [ "*.md" ]

pull_request:
branches: [ main ]
paths-ignore:
- "*.md"
branches: [ "main" ]
paths-ignore: [ "*.md" ]

workflow_dispatch: # Allows you to run this workflow manually from the Actions tab

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
BUILDKIT_PROGRESS: "plain" # Full logs for CI build.
Expand Down Expand Up @@ -53,20 +51,40 @@ jobs:
source ./tool.sh
build_image kafka latest docker_kafka_confluent/Dockerfile && push_image
qpod_postgres:
name: "postgres-16-ext,postgres-15-ext"
qpod_postgres-17-ext:
name: "postgres-17-ext"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
source ./tool.sh
build_image postgres-17-ext latest docker_postgres/postgres-ext.Dockerfile --build-arg BASE_IMG=postgres-17
push_image postgres
qpod_postgres-16-ext:
name: "postgres-16-ext"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
source ./tool.sh
build_image postgres-16-ext latest docker_postgres/postgres-ext.Dockerfile --build-arg BASE_IMG=postgres-16
push_image postgres
qpod_postgres-15-ext:
name: "postgres-15-ext"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
source ./tool.sh
build_image postgres-15-ext latest docker_postgres/postgres-ext.Dockerfile --build-arg BASE_IMG=postgres-15
push_image postgres
## Sync all images in this build (listed by "names") to mirror registry.
sync_images:
needs: ["qpod_bigdata", "qpod_elasticsearch", "qpod_kafka_confluent", "qpod_postgres"]
sync_images: # "qpod_bigdata",
needs: ["qpod_elasticsearch", "qpod_kafka_confluent", "qpod_postgres-17-ext", "qpod_postgres-16-ext", "qpod_postgres-15-ext"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 6d0eae2

Please sign in to comment.