Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/smooth-plants-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"setup-postgres": major
---

feat: add configurable image-tag input (note: this is a non-breaking change but wanted to bump it to 1.0.0)
7 changes: 7 additions & 0 deletions actions/setup-postgres/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ description:
Setup postgres docker container via docker-compose, allowing usage of a custom
command, see https://github.com/orgs/community/discussions/26688
inputs:
image-tag:
description: |
The image tag from the dockerhub (https://hub.docker.com/_/postgres) to use as the
postgres image. Defaults to "14-alpine".
default: "14-alpine"

print-logs:
description: |
Whether to print the logs of the postgres service to the console and a file.
Expand Down Expand Up @@ -39,6 +45,7 @@ runs:
shell: bash
working-directory: ${{ github.action_path }}
env:
IMAGE_TAG: ${{ inputs.image-tag }}
USE_TMPFS: ${{ inputs.tmpfs }}
run: |
if [ "${USE_TMPFS}" == "true" ]; then
Expand Down
2 changes: 1 addition & 1 deletion actions/setup-postgres/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
ports:
- "5432:5432"
container_name: cl_pg
image: postgres:14-alpine
image: postgres:${IMAGE_TAG}
command: postgres ${POSTGRES_OPTIONS}
env_file:
- .env
Expand Down