Fix retrieval of version number from package.json
Some checks failed
Build and Publish Docker Image / build_and_push (push) Failing after 9s

This commit is contained in:
2024-09-16 10:08:06 +00:00
parent 452430576f
commit 2807d662d6

View File

@@ -37,7 +37,7 @@ jobs:
# Calculate additional tags based on branch # Calculate additional tags based on branch
if [ "${{ gitea.ref_name }}" = 'main' ]; then if [ "${{ gitea.ref_name }}" = 'main' ]; then
VERSION=$(node -p -e "require('./package.json').version) VERSION=$(node -p -e "require('./package.json').version")
TAGS+=",git.3t.network/3t.network/ButlerBot:latest" TAGS+=",git.3t.network/3t.network/ButlerBot:latest"
TAGS+=",git.3t.network/3t.network/ButlerBot:$VERSION" TAGS+=",git.3t.network/3t.network/ButlerBot:$VERSION"
elif [ "${{ gitea.ref_name }}" = 'develop' ]; then elif [ "${{ gitea.ref_name }}" = 'develop' ]; then