Make package name lowercase
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 42s

This commit is contained in:
2024-09-16 12:51:51 +00:00
parent cde378e3e5
commit 73d06b2a54

View File

@@ -30,7 +30,7 @@ jobs:
id: set_tags id: set_tags
run: | run: |
GIT_HASH=${{env.GITHUB_SHA}} GIT_HASH=${{env.GITHUB_SHA}}
IMAGE_NAME=git.3t.network/3t.network/ButlerBot:${GIT_HASH:0:7} IMAGE_NAME=git.3t.network/3t.network/butlerbot:${GIT_HASH:0:7}
# Initialize the TAGS variable with the image name and hash # Initialize the TAGS variable with the image name and hash
TAGS=$IMAGE_NAME TAGS=$IMAGE_NAME
@@ -38,12 +38,12 @@ 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
VERSION=$(node -p -e "require('./package.json').version")-dev VERSION=$(node -p -e "require('./package.json').version")-dev
TAGS+=",git.3t.network/3t.network/ButlerBot:dev" TAGS+=",git.3t.network/3t.network/butlerbot:dev"
TAGS+=",git.3t.network/3t.network/ButlerBot:$VERSION" TAGS+=",git.3t.network/3t.network/butlerbot:$VERSION"
fi fi
# Write the tags to the GITHUB_OUTPUT file to set the output # Write the tags to the GITHUB_OUTPUT file to set the output