Skip to content

Added Postgres 15, 16, 17 #5

Added Postgres 15, 16, 17

Added Postgres 15, 16, 17 #5

Workflow file for this run

name: Docker
on:
push:
branches: master
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { version: "10", folder: "10" }
- { version: "11", folder: "11" }
- { version: "12", folder: "12" }
- { version: "13", folder: "13" }
- { version: "14", folder: "14" }
- { version: "15", folder: "15" }
- { version: "16", folder: "16" }
- { version: "17", folder: "17" }
- { version: "latest", folder: "17" }
fail-fast: false
name: Docker (dockette/postgres:${{ matrix.version }})
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.version }}
restore-keys: |
${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.version }}
- name: Build and push
uses: docker/build-push-action@v2
with:
file: ${{ matrix.folder }}/Dockerfile
push: true
tags: dockette/postgres:${{ matrix.version }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
platforms: linux/amd64,linux/arm64