Skip to content

Add Dockerfile with build args. #13

Add Dockerfile with build args.

Add Dockerfile with build args. #13

Workflow file for this run

name: Build and verify pg_cjk_parser for
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
PostgreSQL 11:

Check failure on line 10 in .github/workflows/postgress12_16.yml

View workflow run for this annotation

GitHub Actions / Build and verify pg_cjk_parser for

Invalid workflow file

The workflow is not valid. .github/workflows/postgress12_16.yml (Line: 10, Col: 3): The identifier 'PostgreSQL 11' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters. .github/workflows/postgress12_16.yml (Line: 38, Col: 3): The identifier 'PostgreSQL 12' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
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_pg11
tags: localhost:5000/postgres:11-dev
-
name: Run bash script to verify image postgres:11-dev
run: docker pull localhost:5000/postgres:11-dev && docker tag localhost:5000/postgres:11-dev postgres:11-dev && chmod +x ./postgres-11.sh && ./postgres-11.sh
PostgreSQL 12:
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
build-args: POSTGRES_VERSION=12
file: Dockerfile_alpine
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
PostgreSQL 16:
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
build-args: POSTGRES_VERSION=16
file: Dockerfile_alpine
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