1
0
mirror of https://github.com/garraflavatra/docker-volume-s3-backup.git synced 2025-05-17 13:14:38 +00:00
docker-volume-s3-backup/.github/workflows/build-and-push-images.yml
Georg Ledermann bb9f3af1e0
Add support for PostgreSQL 16, drop 11 (#39)
* Add support for PostgreSQL 16

This requires Alpine 3.19

* Drop support for PostgreSQL 11

Version 11 has reached end-of-life (EOL)
https://www.postgresql.org/support/versioning/

* Install aws-cli via apk instead of pip3

This removes python3 and py3-pip as explicit dependencies.
Python is still installed as a derived dependency.

This fixes building on Alpine 3.19
2023-12-21 16:47:10 -05:00

47 lines
1.1 KiB
YAML

name: build and push images
on:
push:
branches: ['master']
jobs:
build-and-push-image:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { postgres: 12, alpine: '3.12' }
- { postgres: 13, alpine: '3.14' }
- { postgres: 14, alpine: '3.16' }
- { postgres: 15, alpine: '3.17' }
- { postgres: 16, alpine: '3.19' }
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ github.repository }}:${{ matrix.postgres }}
build-args: |
ALPINE_VERSION=${{ matrix.alpine }}
platforms: |
linux/amd64
linux/arm64