Skip to content

Commit

Permalink
chore: use the matrix config we already have access to
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Dec 19, 2024
1 parent 2c662f2 commit 9df7187
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/dockerhub-release-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,22 +169,24 @@ jobs:
id: get_versions
run: |
nix run nixpkgs#nushell -- -c '
let version = "${{ matrix.version }}"
let release_key = if ($version | str contains "orioledb") {
let versions = "${{ matrix.version }}"
let release_key = if ($versions | str contains "orioledb") {
$"postgresorioledb-17"
} else {
$"postgres($version)"
$"postgres($versions)"
}
let pg_version = (open ansible/vars.yml | get postgres_release | get $release_key | str trim)
let matrix = {include: [{version: $pg_version}]}
let matrix_json = ($matrix | to json -r)
$"matrix=($matrix_json)" | save --append $env.GITHUB_OUTPUT
'
publish:
needs: get_publish_version
strategy:
matrix: ${{ fromJson(needs.get_publish_version.outputs.matrix) }}
matrix:
include: ${{ fromJson(needs.get_publish_version.outputs.matrix).include }}
uses: ./.github/workflows/mirror.yml
with:
version: ${{ matrix.version }}
Expand Down

0 comments on commit 9df7187

Please sign in to comment.