Skip to content

Add Dockerfile with build args. #10

Add Dockerfile with build args.

Add Dockerfile with build args. #10

Workflow file for this run

name: Build pg_cjk_parser for postgres 12 and 16
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build_pg12:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- 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
with:
driver-opts: network=host
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
file: Dockerfile_pg12
tags: localhost:5000/postgres:12-dev
-
name: Run bash script to verify image postgres:12-dev
run: docker pull localhost:5000/postgres:12-dev && docker tag localhost:5000/postgres:12-dev postgres:12-dev && chmod +x ./postgres-12.sh && ./postgres-12.sh
build_pg16:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- 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
with:
driver-opts: network=host
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: true
file: Dockerfile_pg16
tags: localhost:5000/postgres:16-dev
-
name: Run bash script to verify image postgres:16-dev
run: docker pull localhost:5000/postgres:16-dev && docker tag localhost:5000/postgres:16-dev postgres:16-dev && chmod +x ./postgres-16.sh && ./postgres-16.sh