Skip to content

Commit 00f61dd

Browse files
committed
TEST: new release process
1 parent 0f572ef commit 00f61dd

File tree

2 files changed

+46
-5
lines changed

2 files changed

+46
-5
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
postgres_version: [15, 16, 17]
912
steps:
1013
- name: Checkout
1114
uses: actions/checkout@v4
@@ -29,10 +32,46 @@ jobs:
2932
string: ${{ github.repository }}
3033

3134
- name: Build
32-
uses: docker/build-push-action@v5
35+
uses: docker/build-push-action@v6
3336
with:
34-
push: true
37+
push: false
38+
build-args: |
39+
POSTGRES_VERSION=${{ matrix.postgres_version }}
40+
tags: |
41+
${{ steps.name.outputs.lowercase }}:latest
42+
${{ steps.name.outputs.lowercase }}:${{ github.event.release.name }}-pg${{matrix.postgres_version}}
43+
platforms: linux/amd64,linux/arm64
44+
45+
build-latest:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v4
50+
51+
- name: Set up QEMU
52+
uses: docker/setup-qemu-action@v3
53+
54+
- name: Set up Docker Buildx
55+
uses: docker/setup-buildx-action@v3
56+
57+
- name: Login to Docker Hub
58+
uses: docker/login-action@v3
59+
with:
60+
username: ${{ secrets.DOCKERHUB_USERNAME }}
61+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
62+
63+
- name: Generate image identifier
64+
id: name
65+
uses: ASzc/change-string-case-action@v5
66+
with:
67+
string: ${{ github.repository }}
68+
69+
- name: Build
70+
uses: docker/build-push-action@v6
71+
with:
72+
push: false
73+
build-args: |
74+
POSTGRES_VERSION=17
3575
tags: |
3676
${{ steps.name.outputs.lowercase }}:latest
37-
${{ steps.name.outputs.lowercase }}:${{ github.event.release.name }}
3877
platforms: linux/amd64,linux/arm64

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
FROM alpine:3.19.1
1+
FROM alpine:3.22.1
22
LABEL maintainer="Fedor Borshev <[email protected]>"
33

4+
ARG POSTGRES_VERSION=17
5+
46
RUN apk update \
5-
&& apk --no-cache add dumb-init postgresql-client curl aws-cli supercronic
7+
&& apk --no-cache add dumb-init postgresql-${POSTGRES_VERSION}-client curl aws-cli supercronic
68

79

810
ENV POSTGRES_DATABASE **None**

0 commit comments

Comments
 (0)