actions: Syntax error fix
Some checks failed
Build Docker / Build Bot (push) Failing after 17s
Build Docker / Build Master (push) Failing after 20s

This commit is contained in:
Nathan Woodburn 2023-08-24 17:35:18 +10:00
parent 46096f0e84
commit 9f0e1d4b15
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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 .