fix: mount /apps and docker socket in PR workflow build-and-deploy-ci job (#41)
Build CI Images / build-ci-base (push) Successful in 1m53s
Release / release (push) Failing after 12m42s

Reviewed-on: #41
Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #41.
This commit is contained in:
2026-05-20 19:51:35 +00:00
committed by david
parent 861e14503b
commit e455d5dba5
41 changed files with 11130 additions and 533 deletions
+6 -5
View File
@@ -73,10 +73,10 @@ jobs:
echo "Bumping version: $BUMP"
# Run the bump script
bun run scripts/bump-version.js "$BUMP" --yes
node scripts/bump-version.js "$BUMP" --yes
# Get new version
NEW_VERSION=$(bun -e "console.log(require('./package.json').version)")
NEW_VERSION=$(node -e "console.log(require('./package.json').version)")
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
echo "New version: $NEW_VERSION"
@@ -121,8 +121,9 @@ jobs:
run: |
docker run --rm \
-e DATABASE_URL="postgresql://user:pass@localhost:5432/dummy" \
-e NODE_ENV=test \
${{ env.IMAGE_NAME }}-test:${{ steps.version.outputs.new_version }} \
bun test 'src/__tests__/unit/**' 'src/__tests__/*.test.tsx' 'src/__tests__/auth-simple.test.ts'
npm test
- name: Build production image
if: steps.commit.outputs.committed == 'true'
@@ -176,12 +177,12 @@ jobs:
# Wait for container to be healthy
echo "Waiting for dev site to be healthy..."
for i in {1..30}; do
for i in {1..6}; do
if curl -sf https://euchre-dev.notsosm.art/api/health > /dev/null 2>&1; then
echo "✅ Dev environment successfully deployed with version ${{ steps.version.outputs.new_version }}"
exit 0
fi
sleep 0.5
sleep 15
done
echo "❌ Dev environment deployment failed"
docker compose logs app