Run continuous-integration tasks for PgPool #6
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
name: CI - pgpool | |
run-name: Run continuous-integration tasks for PgPool | |
on: | |
push: | |
paths: | |
- 'postgresql-cluster' | |
branches: | |
- 'pgpool*' | |
tags: | |
- '0.*' | |
- '1.*' | |
jobs: | |
build_image: | |
runs-on: ubuntu-20.04 | |
env: | |
pgpool_version: "4.4" | |
steps: | |
- uses: actions/checkout@v3 | |
- run: |- | |
git submodule init postgresql-cluster | |
git submodule update postgresql-cluster | |
#- run: ls -hal postgresql-cluster | |
- uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: docker/metadata-action@v4 | |
id: meta | |
with: | |
images: | | |
ghcr.io/opertusmundi/pgpool | |
- uses: docker/setup-buildx-action@v2 | |
- uses: docker/build-push-action@v4 | |
with: | |
context: ./postgresql-cluster/pgpool/redhat/ | |
file: postgresql-cluster/pgpool/redhat/Dockerfile | |
push: true | |
tags: | | |
ghcr.io/opertusmundi/pgpool:${{ github.ref_name }}-${{ env.pgpool_version }}-redhat | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |