Skip to content

chore(deps): update postgres (#219) #275

chore(deps): update postgres (#219)

chore(deps): update postgres (#219) #275

Workflow file for this run

name: Push to main
on:
push:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Hadolint
run: docker compose run --rm hadolint Dockerfile
if: always()
- name: Shellcheck
run: find tools -type f -not -iname '*.sql' | xargs docker compose run --rm shellcheck
if: always()
- name: Argbash
run: |
docker compose run --rm argbash
git diff --exit-code
if: always()
build-test-push:
needs: check
strategy:
matrix:
pg: [12, 13, 14, 14-invoker, 15, 16]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Login to Docker
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build
uses: docker/[email protected]
with:
build-args: PG_MAJOR=${{ matrix.pg }}
- name: Build Test
uses: docker/[email protected]
with:
build-args: PG_MAJOR=${{ matrix.pg }}
target: test
- name: Test
run: DOCKER_BUILDKIT=1 docker compose run --rm bats test
- name: Push
uses: docker/[email protected]
with:
build-args: PG_MAJOR=${{ matrix.pg }}
push: true
tags: technowledgy/pg_dev:pg${{ matrix.pg }}
dockerhub:
needs: build-test-push
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Update Docker Hub Description
uses: peter-evans/[email protected]
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}