Files
finance/.devcontainer/build-and-push.sh
Peter Wood f2c0373640 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
2025-05-04 08:39:31 -04:00

28 lines
646 B
Bash

#!/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'"
}'