Browse Source

Changed version

maziggy 4 months ago
parent
commit
f8220e8931
3 changed files with 8 additions and 8 deletions
  1. 1 1
      backend/app/core/config.py
  2. 3 3
      docker-publish.sh
  3. 4 4
      test_docker.sh

+ 1 - 1
backend/app/core/config.py

@@ -5,7 +5,7 @@ from pathlib import Path
 from pydantic_settings import BaseSettings
 from pydantic_settings import BaseSettings
 
 
 # Application version - single source of truth
 # Application version - single source of truth
-APP_VERSION = "0.1.6b10"
+APP_VERSION = "0.1.6b11"
 GITHUB_REPO = "maziggy/bambuddy"
 GITHUB_REPO = "maziggy/bambuddy"
 
 
 # App directory - where the application is installed (for static files)
 # App directory - where the application is installed (for static files)

+ 3 - 3
docker-publish.sh

@@ -75,9 +75,9 @@ fi
 echo -e "${GREEN}================================================${NC}"
 echo -e "${GREEN}================================================${NC}"
 echo ""
 echo ""
 
 
-# Check if logged in to registry
-if ! docker info 2>/dev/null | grep -q "Username"; then
-    echo -e "${YELLOW}Warning: You may not be logged in to Docker registry${NC}"
+# Check if logged in to ghcr.io
+if ! grep -q "ghcr.io" ~/.docker/config.json 2>/dev/null; then
+    echo -e "${YELLOW}Warning: You may not be logged in to ghcr.io${NC}"
     echo "Run: echo \$GITHUB_TOKEN | docker login ghcr.io -u YOUR_USERNAME --password-stdin"
     echo "Run: echo \$GITHUB_TOKEN | docker login ghcr.io -u YOUR_USERNAME --password-stdin"
     echo ""
     echo ""
 fi
 fi

+ 4 - 4
test_docker.sh

@@ -121,7 +121,7 @@ if [ "$RUN_BUILD" = true ]; then
     print_header "Test 1: Docker Build"
     print_header "Test 1: Docker Build"
     print_info "Building production Docker image..."
     print_info "Building production Docker image..."
 
 
-    if sudo docker build -t bambuddy:test . --quiet --pull; then
+    if sudo docker build -t bambuddy:test . --pull --no-cache --progress=plain; then
         print_success "Production image builds successfully"
         print_success "Production image builds successfully"
 
 
         # Verify image has expected labels/structure
         # Verify image has expected labels/structure
@@ -149,7 +149,7 @@ if [ "$RUN_BACKEND" = true ]; then
     print_header "Test 2: Backend Unit Tests"
     print_header "Test 2: Backend Unit Tests"
     print_info "Building backend test image..."
     print_info "Building backend test image..."
 
 
-    if sudo docker compose -f docker-compose.test.yml build backend-test --quiet --pull; then
+    if sudo docker compose -f docker-compose.test.yml build backend-test --pull --no-cache --progress=plain; then
         print_info "Running backend tests..."
         print_info "Running backend tests..."
         if sudo docker compose -f docker-compose.test.yml run --rm backend-test; then
         if sudo docker compose -f docker-compose.test.yml run --rm backend-test; then
             print_success "Backend unit tests passed"
             print_success "Backend unit tests passed"
@@ -168,7 +168,7 @@ if [ "$RUN_FRONTEND" = true ]; then
     print_header "Test 3: Frontend Unit Tests"
     print_header "Test 3: Frontend Unit Tests"
     print_info "Building frontend test image..."
     print_info "Building frontend test image..."
 
 
-    if sudo docker compose -f docker-compose.test.yml build frontend-test --quiet --pull; then
+    if sudo docker compose -f docker-compose.test.yml build frontend-test --pull --no-cache --progress=plain; then
         print_info "Running frontend tests..."
         print_info "Running frontend tests..."
         if sudo docker compose -f docker-compose.test.yml run --rm frontend-test; then
         if sudo docker compose -f docker-compose.test.yml run --rm frontend-test; then
             print_success "Frontend unit tests passed"
             print_success "Frontend unit tests passed"
@@ -188,7 +188,7 @@ if [ "$RUN_INTEGRATION" = true ]; then
     print_info "Building integration container..."
     print_info "Building integration container..."
 
 
     # Build the integration container first to ensure latest code
     # Build the integration container first to ensure latest code
-    if ! sudo docker compose -f docker-compose.test.yml build integration --quiet --pull; then
+    if ! sudo docker compose -f docker-compose.test.yml build integration --pull --no-cache --progress=plain; then
         print_failure "Integration container build failed"
         print_failure "Integration container build failed"
     else
     else
         print_info "Starting application container..."
         print_info "Starting application container..."