Skip to content

Commit 96aa7b1

Browse files
authored
ci: support preview versions in bake.yaml (#300)
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
1 parent 017b1da commit 96aa7b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/bake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Get supported PostgreSQL versions
3232
id: get_versions
3333
run: |
34-
VERSIONS="$(sed -n '/postgreSQLVersions = \[/,/\]/ s/.*"\(.*\)\..*".*/\"\1\"/p' docker-bake.hcl | xargs echo | tr ' ' ',')"
34+
VERSIONS="$(sed -n '/postgreSQL\(Versions\|PreviewVersions\) = \[/,/\]/ s/.*"\([0-9][0-9]*\)[.~][^"]*".*/\1/p' docker-bake.hcl | sort -nu | paste -sd,)"
3535
echo "PostgreSQL versions: [$VERSIONS]"
3636
echo "versions=[$VERSIONS]" >> "$GITHUB_OUTPUT"
3737

0 commit comments

Comments
 (0)