Skip to content

Commit

Permalink
feat: postgres/postgres (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Oct 13, 2023
1 parent 58de262 commit a1a1fa0
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
package: [bitnami/postgres]
package: [bitnami/postgres, postgres/postgres]
tag: [12, 13, 14, 15, 16]
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Get first tag
- name: Get tag
id: tag
run: |
TAG=$(grep '^FROM' ${{ matrix.package }}/${{ matrix.tag }}/Dockerfile | cut -d':' -f2)
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
package: [bitnami/postgres]
package: [bitnami/postgres, postgres/postgres]
steps:
- uses: actions/delete-package-versions@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions postgres/postgres/12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM postgres:12.16

# Health check and non-privileged user
HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ]
USER postgres
5 changes: 5 additions & 0 deletions postgres/postgres/13/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM postgres:13.12

# Health check and non-privileged user
HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ]
USER postgres
5 changes: 5 additions & 0 deletions postgres/postgres/14/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM postgres:14.9

# Health check and non-privileged user
HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ]
USER postgres
5 changes: 5 additions & 0 deletions postgres/postgres/15/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM postgres:15.4

# Health check and non-privileged user
HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ]
USER postgres
5 changes: 5 additions & 0 deletions postgres/postgres/16/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM postgres:16.0

# Health check and non-privileged user
HEALTHCHECK --interval=15s --timeout=5s --retries=3 CMD [ "pg_isready" ]
USER postgres

0 comments on commit a1a1fa0

Please sign in to comment.