Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ docker-compose*.yml
Makefile
.vscode/
.idea/
.zed/
.target/

# OS
.DS_Store
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and Push Docker Images

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
postgres_version: ["18", "17", "17.6", "16", "16.10"]
fail-fast: false

steps:
- name: Checkout code
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

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PERSONAL_KEY }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/riscv64,linux/s390x
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ secrets.DOCKER_USERNAME }}/postgres:${{ matrix.postgres_version }}
${{ secrets.DOCKER_USERNAME }}/postgres:latest
build-args: |
POSTGRES_VERSION=${{ matrix.postgres_version }}
cache-from: type=gha
cache-to: type=gha,mode=max
51 changes: 0 additions & 51 deletions .github/workflows/docker-image.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
75 changes: 0 additions & 75 deletions ADDING_VERSIONS.md

This file was deleted.

Loading
Loading