Skip to content

Commit a2c6b12

Browse files
committed
fix: strip quotes from version number
1 parent e086708 commit a2c6b12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ jobs:
6666
echo "result<<EOF" >> $GITHUB_OUTPUT
6767
echo "$ARGS" >> $GITHUB_OUTPUT
6868
echo "EOF" >> $GITHUB_OUTPUT
69+
- name: Strip quotes from pg major and set env var
70+
run: |
71+
stripped_version=$(echo ${{ matrix.postgres_version }} | sed 's/^"\(.*\)"$/\1/')
72+
echo "PGMAJOR=$stripped_version" >> $GITHUB_ENV
6973
7074
- run: docker context create builders
7175
- uses: docker/setup-buildx-action@v3
@@ -75,7 +79,7 @@ jobs:
7579
with:
7680
load: true
7781
context: .
78-
file: ${{ format('Dockerfile-{0}', matrix.postgres_version) }}
82+
file: Dockerfile-${{ env.STRIPPED_VERSION }}
7983
target: production
8084
build-args: |
8185
${{ steps.args.outputs.result }}

0 commit comments

Comments
 (0)