Make package name lowercase
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 42s
All checks were successful
Build and Publish Docker Image / build_and_push (push) Successful in 42s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user