feature/devops #1

Merged
jack merged 9 commits from feature/devops into develop 2024-09-16 14:50:06 +00:00
Showing only changes of commit 73d06b2a54 - Show all commits

View File

@@ -30,7 +30,7 @@ jobs:
id: set_tags
run: |
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
TAGS=$IMAGE_NAME
@@ -38,12 +38,12 @@ jobs:
# Calculate additional tags based on branch
if [ "${{ gitea.ref_name }}" = 'main' ]; then
VERSION=$(node -p -e "require('./package.json').version")
TAGS+=",git.3t.network/3t.network/ButlerBot:latest"
TAGS+=",git.3t.network/3t.network/ButlerBot:$VERSION"
TAGS+=",git.3t.network/3t.network/butlerbot:latest"
TAGS+=",git.3t.network/3t.network/butlerbot:$VERSION"
elif [ "${{ gitea.ref_name }}" = 'develop' ]; then
VERSION=$(node -p -e "require('./package.json').version")-dev
TAGS+=",git.3t.network/3t.network/ButlerBot:dev"
TAGS+=",git.3t.network/3t.network/ButlerBot:$VERSION"
TAGS+=",git.3t.network/3t.network/butlerbot:dev"
TAGS+=",git.3t.network/3t.network/butlerbot:$VERSION"
fi
# Write the tags to the GITHUB_OUTPUT file to set the output