We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da649e5 commit 5d772a2Copy full SHA for 5d772a2
1 file changed
backend/publish.sh
@@ -3,6 +3,12 @@ if [ -z "$1" ]; then
3
exit 1
4
fi
5
6
+if ! [[ "$1" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
7
+ echo "Error: Version must be in format X.Y.Z (e.g. 0.0.1)" >&2
8
+ exit 1
9
+fi
10
+
11
12
# Check if the tag already exists
13
if docker manifest inspect apillonio/nft-studio:$1 >/dev/null 2>&1; then
14
read -p "Warning: Tag $1 already exists. Do you want to overwrite it? (y/N) " confirm
0 commit comments