Skip to content

Commit 9ef1aae

Browse files
committed
chore: reading the version info directly from vars.yml
1 parent de3b59d commit 9ef1aae

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/dockerhub-release-matrix.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,17 @@ jobs:
121121
versions_array+=","
122122
tags_array+=","
123123
fi
124-
125-
# Download and read artifacts
126-
mkdir -p ./download
127-
echo "Processing version $version"
128-
129-
tag=$(cat ./versions/tag.txt)
124+
125+
# Get version from vars.yml using same logic as common-nix.vars.pkr.hcl
126+
if [[ "$version" == "orioledb-17" ]]; then
127+
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release.postgresorioledb-17' ansible/vars.yml)
128+
else
129+
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'$version'"]' ansible/vars.yml)
130+
fi
131+
PG_VERSION=$(echo $PG_VERSION | tr -d '"')
130132
131133
versions_array+="\"$version\""
132-
tags_array+="\"$tag\""
134+
tags_array+="\"supabase/postgres:$PG_VERSION\""
133135
done
134136
135137
versions_array+="]"

0 commit comments

Comments
 (0)