2 Commits

Author SHA1 Message Date
github-actions[bot]
73d0d767e9 chore(release): bump version to v0.0.7 and update changelog [skip ci] 2026-02-22 09:30:07 +00:00
almazlar
4050c08859 fix: update API base URL and add healthcheck for backend service
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m30s
2026-02-22 12:29:55 +03:00
5 changed files with 16 additions and 3 deletions

View File

@@ -146,4 +146,4 @@ jobs:
labels: ${{ steps.meta-frontend.outputs.labels }} labels: ${{ steps.meta-frontend.outputs.labels }}
build-args: | build-args: |
VITE_APP_VERSION=${{ steps.generate.outputs.new_tag }} VITE_APP_VERSION=${{ steps.generate.outputs.new_tag }}
VITE_BASE_URL=https://todo.almazlar.com/api/todos VITE_BASE_URL=https://todo.almazlar.com/api

View File

@@ -1,3 +1,7 @@
## [v0.0.7] - 2026-02-22
* fix: update API base URL and add healthcheck for backend service (4050c08)
## [v0.0.6] - 2026-02-22 ## [v0.0.6] - 2026-02-22
* fix: update database connection URL and configure frontend build context (000d1db) * fix: update database connection URL and configure frontend build context (000d1db)

View File

@@ -30,12 +30,17 @@ services:
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/actuator/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
frontend: frontend:
build: build:
context: ./frontend context: ./frontend
args: args:
VITE_BASE_URL: "http://localhost:8082/api/todos" VITE_BASE_URL: "http://localhost:8082/api"
container_name: todo-frontend container_name: todo-frontend
ports: ports:
- "5173:80" - "5173:80"

View File

@@ -6,6 +6,10 @@ RUN npm install
COPY . . COPY . .
ARG VITE_APP_VERSION=dev ARG VITE_APP_VERSION=dev
ENV VITE_APP_VERSION=${VITE_APP_VERSION} ENV VITE_APP_VERSION=${VITE_APP_VERSION}
ARG VITE_BASE_URL=https://todo.almazlar.com/api
ENV VITE_BASE_URL=${VITE_BASE_URL}
RUN npm run build RUN npm run build
# Run stage # Run stage

View File

@@ -2,7 +2,7 @@
// Vite automatically injects the variable defined in .env.* based on the current mode. // Vite automatically injects the variable defined in .env.* based on the current mode.
// `import.meta.env.VITE_BASE_URL` is the single source of truth for the API root. // `import.meta.env.VITE_BASE_URL` is the single source of truth for the API root.
const BASE_URL = import.meta.env.VITE_BASE_URL; const BASE_URL = import.meta.env.VITE_BASE_URL + '/todos';
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// API helpers // API helpers