Fix workflow path filters for repository root structure
Some checks failed
Run Tests / Run Go Tests (push) Successful in 4m21s
Run Tests / Lint Code (push) Failing after 54s

This commit is contained in:
2025-11-21 15:27:02 +03:00
parent 1d37f50604
commit 971c62afc5
2 changed files with 13 additions and 11 deletions

View File

@@ -62,7 +62,6 @@ jobs:
pack config default-builder paketobuildpacks/builder-jammy-tiny:latest
- name: Prepare build environment
working-directory: backend
run: |
# Create .env.production for build (no secrets, just structure)
cat > .env.production << EOF
@@ -77,15 +76,15 @@ jobs:
run: |
PACK_ARGS=(
"${IMAGE_NAME}:${IMAGE_TAG}"
--path backend
--path .
)
if [ -n "$PACK_DOCKER_HOST" ]; then
PACK_ARGS+=(--docker-host "$PACK_DOCKER_HOST")
fi
if [ -f "backend/.env.production" ]; then
PACK_ARGS+=(--env-file backend/.env.production)
if [ -f ".env.production" ]; then
PACK_ARGS+=(--env-file .env.production)
fi
pack build "${PACK_ARGS[@]}"