Skip to content

Commit 74c5905

Browse files
committed
chore: cleanup version handling
1 parent f4eb159 commit 74c5905

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,7 @@ jobs:
7979

8080
- name: Generate common-nix.vars.pkr.hcl
8181
run: |
82-
# For orioledb versions, we need to handle the version lookup differently
83-
if [[ "${{ matrix.version }}" == "orioledb-"* ]]; then
84-
MAJOR_VERSION="${{ matrix.version #orioledb-}}"
85-
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'$MAJOR_VERSION'_orioledb"]' ansible/vars.yml)
86-
else
87-
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres${{ matrix.version }}"]' ansible/vars.yml)
88-
fi
89-
82+
PG_VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres${{ matrix.version }}"]' ansible/vars.yml)
9083
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
9184
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
9285
# Ensure there's a newline at the end of the file

0 commit comments

Comments
 (0)