Skip to content

Commit 6bd45b1

Browse files
committed
chore: simplify name matching
1 parent 74c5905 commit 6bd45b1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
- release/*
88
- sam/docker-oriole17
99
paths:
10-
# - ".github/workflows/dockerhub-release-matrix.yml"
11-
# - "anisble/vars.yml"
1210
- '**'
1311
workflow_dispatch:
1412

@@ -29,7 +27,7 @@ jobs:
2927
# Get all postgres versions from vars.yml
3028
VERSIONS=$(nix run nixpkgs#yq -- '.postgres_major[]' ansible/vars.yml)
3129
32-
# Check which versions have corresponding Dockerfiles and create matrix config
30+
# Create matrix config
3331
MATRIX_CONFIG="{"
3432
MATRIX_CONFIG+="\"include\":["
3533
FIRST=true
@@ -38,12 +36,8 @@ jobs:
3836
# Remove quotes from version
3937
version=$(echo "$version" | tr -d '"')
4038
41-
# Determine dockerfile name based on version
42-
if [[ "$version" == "orioledb-"* ]]; then
43-
dockerfile="Dockerfile-${version#orioledb-}-orioledb"
44-
else
45-
dockerfile="Dockerfile-${version}"
46-
fi
39+
# Simply look for Dockerfile-{version}
40+
dockerfile="Dockerfile-${version}"
4741
4842
# Check if Dockerfile exists
4943
if [ -f "$dockerfile" ]; then

0 commit comments

Comments
 (0)