Skip to content

Commit b3d35b8

Browse files
committed
fix: scope git ref tag to latest matrix entry to prevent race condition
The type=ref,event=tag metadata generates the same tag (e.g. v1.0.0) for all matrix entries. Restrict it to the latest entry only, matching how the 'latest' tag is already handled.
1 parent 8d814d5 commit b3d35b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
tags: |
6161
type=raw,value=postgres-${{ matrix.pg_version }}-postgis-${{ matrix.postgis_version }}-pgvector-${{ matrix.pgvector_version }}
6262
type=raw,value=latest,enable=${{ matrix.latest }}
63-
type=ref,event=tag
63+
type=ref,event=tag,enable=${{ matrix.latest }}
6464
6565
- name: Build and push Docker image
6666
uses: docker/build-push-action@v7

0 commit comments

Comments
 (0)