mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
refactor: update devcontainer and Biome configuration (#27)
- Remove ESLint and Prettier in favor of Biome - Configure Biome as default formatter for TS/JS/JSON/MD - Add development helper extensions - Update VSCode settings for Biome integration Closes #27
This commit is contained in:
28
.devcontainer/build-and-push.sh
Normal file
28
.devcontainer/build-and-push.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Configuration
|
||||
GITHUB_USERNAME=$1
|
||||
IMAGE_NAME="finance-devcontainer"
|
||||
IMAGE_TAG="latest"
|
||||
|
||||
if [ -z "$GITHUB_USERNAME" ]; then
|
||||
echo "Usage: $0 <github_username>"
|
||||
echo "Example: $0 acedanger"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
FULL_IMAGE_NAME="ghcr.io/$GITHUB_USERNAME/$IMAGE_NAME:$IMAGE_TAG"
|
||||
|
||||
# Build the image
|
||||
echo "Building image: $FULL_IMAGE_NAME"
|
||||
docker build -t $FULL_IMAGE_NAME -f Dockerfile .
|
||||
|
||||
# Push to GitHub Container Registry
|
||||
echo "Pushing image to GHCR..."
|
||||
docker push $FULL_IMAGE_NAME
|
||||
|
||||
echo "Done! Now update your devcontainer.json to use this image:"
|
||||
echo "Replace the 'build' section with:"
|
||||
echo '{
|
||||
"image": "'$FULL_IMAGE_NAME'"
|
||||
}'
|
||||
Reference in New Issue
Block a user