Skip to content

Add PG 17 ext

Add PG 17 ext #46

Workflow file for this run

name: build-docker-images
on:
push:
branches: [ "main" ]
paths-ignore: [ "*.md" ]
pull_request:
branches: [ "main" ]
paths-ignore: [ "*.md" ]
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
env:
BUILDKIT_PROGRESS: "plain" # Full logs for CI build.
REGISTRY_URL: "docker.io" # docker.io or other target registry URL: where to push images to.
REGISTRY_SRC: "docker.io" # For BASE_NAMESPACE of images: where to pull base images from.
# DOCKER_REGISTRY_USERNAME and DOCKER_REGISTRY_PASSWORD is required for docker image push, they should be set in CI secrets.
DOCKER_REGISTRY_USERNAME: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
# used to sync image to mirror registry
DOCKER_MIRROR_REGISTRY_USERNAME: ${{ secrets.DOCKER_MIRROR_REGISTRY_USERNAME }}
DOCKER_MIRROR_REGISTRY_PASSWORD: ${{ secrets.DOCKER_MIRROR_REGISTRY_PASSWORD }}
jobs:
qpod_bigdata:
name: "bigdata"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
source ./tool.sh
build_image bigdata latest docker_bigdata/Dockerfile && push_image
qpod_elasticsearch:
name: "elasticsearch"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
source ./tool.sh
build_image elasticsearch latest docker_elasticsearch/Dockerfile && push_image
qpod_kafka_confluent:
name: "kafka"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
source ./tool.sh
build_image kafka latest docker_kafka_confluent/Dockerfile && push_image
qpod_postgres:
name: "postgres-17-ext,postgres-16-ext,postgres-15-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
build_image postgres-16-ext latest docker_postgres/postgres-ext.Dockerfile --build-arg BASE_IMG=postgres-16
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"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
source ./tool.sh
printenv | grep -v 'PATH' > /tmp/docker.env
docker run --rm --env-file /tmp/docker.env -v $(pwd):/tmp -w /tmp \
${IMG_NAMESPACE:-qpod}/docker-kit python /opt/utils/image-syncer/run_jobs.py