diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8eb39ee..2379309 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,7 +58,7 @@ jobs: id: from_tag run: | POSTGRESQL_IMAGE=$(cat Dockerfile | grep 'FROM ghcr.io/cloudnative-pg/postgresql:') - POSTGRESQL_FROM_TAG=$(echo $POSTGRESQL_IMAGE | cut -d':' -f2) + POSTGRESQL_FROM_TAG=$(echo $POSTGRESQL_IMAGE | cut -d':' -f2 | cut -d'@' -f1) echo "postgresql=${POSTGRESQL_FROM_TAG}" >> "$GITHUB_OUTPUT" PGVECTO_IMAGE=$(cat Dockerfile | grep 'FROM tensorchord/pgvecto-rs-binary:') PGVECTO_FROM_TAG=$(echo $PGVECTO_IMAGE | cut -d'-' -f4) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 7569167..dc32181 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -57,7 +57,7 @@ jobs: id: from_tag run: | POSTGRESQL_IMAGE=$(cat Dockerfile | grep 'FROM ghcr.io/cloudnative-pg/postgresql:') - POSTGRESQL_FROM_TAG=$(echo $POSTGRESQL_IMAGE | cut -d':' -f2) + POSTGRESQL_FROM_TAG=$(echo $POSTGRESQL_IMAGE | cut -d':' -f2 | cut -d'@' -f1) echo "postgresql=${POSTGRESQL_FROM_TAG}" >> "$GITHUB_OUTPUT" PGVECTO_IMAGE=$(cat Dockerfile | grep 'FROM tensorchord/pgvecto-rs-binary:') PGVECTO_FROM_TAG=$(echo $PGVECTO_IMAGE | cut -d'-' -f4)