Skip to content

Commit

Permalink
chore: handle oriole
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Dec 19, 2024
1 parent ad254d5 commit 8c777d0
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/dockerhub-release-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,18 +168,23 @@ jobs:
- name: Get version
id: get_versions
run: |
nix run nixpkgs#nushell -- -c '
let version = "${{ matrix.version }}"
version="${{ matrix.version }}"
release_key=$(nix run nixpkgs#nushell -- -c '
let version = "'$version'"
let release_key = if ($version | str contains "orioledb") {
$"postgres($version | str replace "-" "")"
$"postgresorioledb-17"
} else {
$"postgres($version)"
}
let pg_version = (open ansible/vars.yml | get postgres_release | get $release_key | str trim)
# Ensure clean JSON formatting
$"matrix={json: {include: [{version: $pg_version}]}, format: compact}" | save --append $env.GITHUB_OUTPUT
'
$release_key
')
pg_version=$(nix run nixpkgs#nushell -- -c "
let release_key = \"$release_key\"
open ansible/vars.yml | get postgres_release | get $release_key | str trim
")
echo "matrix=$(jq -n --arg version "$pg_version" '{include: [{version: $version}]}' | base64 -w0)" >> $GITHUB_OUTPUT
publish:
needs: get_publish_version
Expand Down

0 comments on commit 8c777d0

Please sign in to comment.