Add baseline start point (#1)
Co-authored-by: Michael DiLeo <michael.dileo@oakstreethealth.com> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
28
build.sh
Normal file
28
build.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
set -e
|
||||
|
||||
REGISTRY="registry.keyboardvagabond.com"
|
||||
VERSION="latest"
|
||||
PLATFORM="linux/arm64"
|
||||
IMAGE_NAME="keyboard-vagabond-landing"
|
||||
|
||||
echo "Building Keyboard Vagabond Landing Page..."
|
||||
|
||||
docker build \
|
||||
--platform $PLATFORM \
|
||||
--tag $REGISTRY/library/$IMAGE_NAME:$VERSION \
|
||||
--tag $REGISTRY/library/$IMAGE_NAME:latest \
|
||||
.
|
||||
|
||||
echo "✓ Container built successfully!"
|
||||
|
||||
read -p "Push to Harbor registry? (y/N): " -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo "Pushing to registry..."
|
||||
docker login $REGISTRY
|
||||
docker push $REGISTRY/library/$IMAGE_NAME:$VERSION
|
||||
docker push $REGISTRY/library/$IMAGE_NAME:latest
|
||||
echo "✓ Container pushed successfully!"
|
||||
fi
|
||||
|
||||
echo "🚀 Ready for Kubernetes deployment!"
|
||||
Reference in New Issue
Block a user