Skip to content

Commit

Permalink
Change check to curl
Browse files Browse the repository at this point in the history
  • Loading branch information
hofq committed Jun 7, 2024
1 parent 888155a commit faf0075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ echo "PGVector - Name: $PGVECTOR_NAME, Digest: ${PGVECTOR_DIGEST:7:5}"
TAG_IDENTIFIER=pg$PG_MAJOR_VERSION-${BITNAMI_DIGEST:7:5}-${PGVECTOR_DIGEST:7:5}
echo "Identifier will be $TAG_IDENTIFIER"

if [ -z "$(skopeo list-tags --registry-token $(echo -n $GITHUB_TOKEN | base64) docker://ghcr.io/bat-bs/${IMAGE_NAME} | grep $TAG_IDENTIFIER)" ]; then
if [ -z "$( curl -H "Authorization: Bearer $(echo -n $GITHUB_TOKEN | base64)" "https://ghcr.io/v2/bat-bs/bitnami-pgvector/tags/list" | grep -i $TAG_IDENTIFIER)" ]; then
echo "Tag not found in registry. The image will be build."
else
echo "Tag found in registry. The image will not be build."
Expand Down

0 comments on commit faf0075

Please # to comment.