Skip to content

Commit efd950c

Browse files
committed
fix(build): fix team name to repo name
1 parent d84bc04 commit efd950c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

build.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ set -e
1313
# - GITHUB_PAT: GitHub Personal Access Token
1414
# - DOCKER_USER: Docker Hub username
1515
# - DOCKER_PASS: Docker Hub password
16-
# - TEAM: Team name (frontend/backend/cross-platform)
1716

18-
if [ "${TEAM}" = "cross-platform" ]; then
17+
if [ "${REPO_NAME}" = "cross-platform" ]; then
1918
echo "Building cross-platform Flutter app..."
2019

2120
# Navigate to app directory
@@ -48,14 +47,14 @@ if [ "${TEAM}" = "cross-platform" ]; then
4847

4948
else
5049
# Docker build for frontend/backend
51-
echo "Building ${TEAM} Docker image..."
50+
echo "Building ${REPO_NAME} Docker image..."
5251

5352
# Navigate to app directory
5453
cd ../app
5554

5655
# Build Docker image with commit SHA + environment tag
5756
# For frontend, set NEXT_PUBLIC_BASE_PATH based on environment
58-
if [ "${TEAM}" = "frontend" ]; then
57+
if [ "${REPO_NAME}" = "frontend" ]; then
5958
if [ "${ENV_TAG}" = "dev" ]; then
6059
BUILD_ARGS="--build-arg NEXT_PUBLIC_BASE_PATH=/frontend/dev"
6160
elif [ "${ENV_TAG}" = "prod" ]; then
@@ -98,6 +97,6 @@ else
9897
docker push ${DOCKER_USER}/${REPO_NAME,,}:${COMMIT_TAG}-${ENV_TAG} > /dev/null 2>&1
9998
docker push ${DOCKER_USER}/${REPO_NAME,,}:${MOVING_TAG} > /dev/null 2>&1
10099

101-
echo "${TEAM} Docker build completed successfully!"
100+
echo "${REPO_NAME} Docker build completed successfully!"
102101
echo "Image: ${DOCKER_USER}/${REPO_NAME,,}:${COMMIT_TAG}-${ENV_TAG}"
103102
fi

0 commit comments

Comments
 (0)