Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Commit 1019493

Browse files
committed
Use postgres alpine images
1 parent ecb08ff commit 1019493

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/build-and-push-images.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ jobs:
1111
strategy:
1212
matrix:
1313
include:
14-
- { postgres: 12, alpine: '3.12' }
15-
- { postgres: 13, alpine: '3.14' }
16-
- { postgres: 14, alpine: '3.16' }
17-
- { postgres: 15, alpine: '3.17' }
18-
- { postgres: 16, alpine: '3.19' }
14+
- { postgres: 12 }
15+
- { postgres: 13 }
16+
- { postgres: 14 }
17+
- { postgres: 15 }
18+
- { postgres: 16 }
19+
- { postgres: 17 }
1920

2021
steps:
2122
- name: Checkout repository
@@ -40,7 +41,7 @@ jobs:
4041
push: true
4142
tags: ${{ github.repository }}:${{ matrix.postgres }}
4243
build-args: |
43-
ALPINE_VERSION=${{ matrix.alpine }}
44+
POSTGRES_VERSION=${{ matrix.postgres }}
4445
platforms: |
4546
linux/amd64
4647
linux/arm64

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG ALPINE_VERSION
2-
FROM alpine:${ALPINE_VERSION}
1+
ARG POSTGRES_VERSION
2+
FROM postgres:${POSTGRES_VERSION}-alpine
33
ARG TARGETARCH
44

55
ADD src/install.sh install.sh

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ docker exec <container name> sh restore.sh <timestamp>
5454

5555
# Development
5656
## Build the image locally
57-
`ALPINE_VERSION` determines Postgres version compatibility. See [`build-and-push-images.yml`](.github/workflows/build-and-push-images.yml) for the latest mapping.
57+
`POSTGRES_VERSION` determines Postgres version.
5858
```sh
59-
DOCKER_BUILDKIT=1 docker build --build-arg ALPINE_VERSION=3.14 .
59+
DOCKER_BUILDKIT=1 docker build --build-arg POSTGRES_VERSION=17 .
6060
```
6161
## Run a simple test environment with Docker Compose
6262
```sh

docker-compose.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ services:
1212
build:
1313
context: .
1414
args:
15-
ALPINE_VERSION: '3.16'
15+
POSTGRES_VERSION: '17'
1616
environment:
17-
SCHEDULE: '@weekly' # optional
18-
BACKUP_KEEP_DAYS: 7 # optional
19-
PASSPHRASE: passphrase # optional
17+
SCHEDULE: '@weekly' # optional
18+
BACKUP_KEEP_DAYS: 7 # optional
19+
PASSPHRASE: passphrase # optional
2020
S3_REGION:
2121
S3_ACCESS_KEY_ID:
2222
S3_SECRET_ACCESS_KEY:

0 commit comments

Comments
 (0)