Updated build script
This commit is contained in:
1 parent
811bb9dc74
commit
b5b75b6354
7 files changed
+86
No files matched your search
+23
@@ -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-*
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# Package Managers
|
||||||
|
package-lock.json
|
||||||
|
pnpm-lock.yaml
|
||||||
|
yarn.lock
|
||||||
|
bun.lock
|
||||||
|
bun.lockb
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
/static/
|
||||||
+19
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"svelte.svelte-vscode",
|
||||||
|
"bradlc.vscode-tailwindcss",
|
||||||
|
"esbenp.prettier-vscode"
|
||||||
|
]
|
||||||
|
}
|
||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"*.css": "tailwindcss"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
Reference in new issue
Block a user