actions: Syntax error fix
This commit is contained in:
parent
46096f0e84
commit
b0ab46562f
@ -25,9 +25,9 @@ jobs:
|
||||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
||||
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
|
||||
if [ tag = "main" ]; then
|
||||
tag = "latest"
|
||||
tag="latest"
|
||||
else
|
||||
tag_num = $tag +"-"+ $tag_num
|
||||
tag_num=$tag + "-" + $tag_num
|
||||
fi
|
||||
|
||||
docker build -t hnshosting-master:$tag_num .
|
||||
@ -62,9 +62,9 @@ jobs:
|
||||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
||||
tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
|
||||
if [ tag = "main" ]; then
|
||||
tag = "latest"
|
||||
tag="latest"
|
||||
else
|
||||
tag_num = $tag +"-"+ $tag_num
|
||||
tag_num=$tag + "-" + $tag_num
|
||||
fi
|
||||
|
||||
docker build -t hnshosting-bot:$tag_num .
|
||||
|
Loading…
Reference in New Issue
Block a user