Updated build script

This commit is contained in:
Alex Rennie-Lis
2026-06-28 23:09:59 +01:00
parent 811bb9dc74
commit b5b75b6354
7 changed files with 86 additions and 0 deletions

23
.gitignore vendored Normal file
View File

@@ -0,0 +1,23 @@
node_modules
# Output
.output
.vercel
.netlify
.wrangler
/.svelte-kit
/build
# OS
.DS_Store
Thumbs.db
# Env
.env
.env.*
!.env.example
!.env.test
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

1
.npmrc Normal file
View File

@@ -0,0 +1 @@
engine-strict=true

9
.prettierignore Normal file
View File

@@ -0,0 +1,9 @@
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock
bun.lock
bun.lockb
# Miscellaneous
/static/

19
.prettierrc Normal file
View File

@@ -0,0 +1,19 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": [
"prettier-plugin-svelte",
"prettier-plugin-tailwindcss"
],
"tailwindStylesheet": "./src/routes/layout.css",
"overrides": [
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}

7
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,7 @@
{
"recommendations": [
"svelte.svelte-vscode",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode"
]
}

5
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"files.associations": {
"*.css": "tailwindcss"
}
}

22
build.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Exit immediately if any command exits with a non-zero status
set -e
name="photogallery"
version="1.0-0"
registry="registry.unblue.uk"
image_name="${registry}/${name}"
echo "🔨 Building Docker image for ${name}..."
# Build the image using the local Dockerfile context
docker build -t "${image_name}:${version}" -t "${image_name}:latest" .
echo "🚀 Pushing tags to ${registry}..."
# Push the specific release version tag
docker push "${image_name}:${version}"
# Push the latest tag
docker push "${image_name}:latest"
echo "✅ Successfully built and pushed ${image_name}:${version} and :latest"