improved automated build, removed header, minor adjustments
This commit is contained in:
parent
2ab89d122d
commit
198bbd642c
@ -1,26 +1,32 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# Set image name and tag
|
||||
# Set variables
|
||||
IMAGE_NAME="ssvc-rimsting-vote"
|
||||
TAG="latest"
|
||||
GITEA_DOMAIN="git.jeanavril.com"
|
||||
GITEA_USER="jean"
|
||||
|
||||
# Build the Docker image
|
||||
echo "Building Docker image: ${IMAGE_NAME}:${TAG}"
|
||||
docker build -t ${IMAGE_NAME}:${TAG} .
|
||||
docker build -t ${IMAGE_NAME}:${TAG} --provenance=false .
|
||||
|
||||
# Check if build was successful
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Docker image built successfully!"
|
||||
echo ""
|
||||
echo "Image details:"
|
||||
docker images ${IMAGE_NAME}:${TAG}
|
||||
echo ""
|
||||
echo "To run the container:"
|
||||
echo "docker run -p 3000:3000 ${IMAGE_NAME}:${TAG}"
|
||||
echo ""
|
||||
echo "To run the container with persistent data volume:"
|
||||
echo "docker run -p 3000:3000 -v $(pwd)/data:/app/data ${IMAGE_NAME}:${TAG}"
|
||||
|
||||
# Tag the image for Gitea
|
||||
echo "Tagging image for Gitea: ${GITEA_DOMAIN}/${GITEA_USER}/${IMAGE_NAME}:${TAG}"
|
||||
docker tag ${IMAGE_NAME}:${TAG} ${GITEA_DOMAIN}/${GITEA_USER}/${IMAGE_NAME}:${TAG}
|
||||
|
||||
# Push the image to Gitea
|
||||
echo "Pushing image to Gitea..."
|
||||
docker push ${GITEA_DOMAIN}/${GITEA_USER}/${IMAGE_NAME}:${TAG}
|
||||
|
||||
echo "Image pushed successfully!"
|
||||
else
|
||||
echo "Error building Docker image"
|
||||
exit 1
|
||||
fi
|
||||
# docker tag ssvc-rimsting-vote:latest git.jeanavril.com/jean/ssvc-rimsting-vote:latest
|
||||
# docker push git.jeanavril.com/jean/ssvc-rimsting-vote:latest
|
@ -1,7 +1,6 @@
|
||||
import type { Metadata } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
import "./globals.css";
|
||||
|
||||
const geistSans = Geist({
|
||||
@ -29,7 +28,7 @@ export default function RootLayout({
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
<header className="ssvc-header">
|
||||
{/*<header className="ssvc-header">
|
||||
<div className="ssvc-logo-container">
|
||||
<div className="w-24 h-24 relative">
|
||||
<div className="absolute inset-0 bg-[#0057a6] flex items-center justify-center text-white font-bold" >
|
||||
@ -48,7 +47,7 @@ export default function RootLayout({
|
||||
<div className="text-sm font-bold">RIMSTING</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
</header>*/}
|
||||
<nav className="ssvc-nav">
|
||||
<Link href="/">HOME</Link>
|
||||
<Link href="/admin">ADMIN</Link>
|
||||
|
@ -133,7 +133,7 @@ function VotePageContent() {
|
||||
return (
|
||||
<div className="container mx-auto px-4 py-8">
|
||||
<div className="mb-8">
|
||||
<h1 className="text-2xl font-bold text-[#0057a6] mb-4">SATZUNGSÄNDERUNG - ABSTIMMUNG</h1>
|
||||
<h1 className="text-2xl font-bold text-[#0057a6] mb-4">ABSTIMMUNG</h1>
|
||||
|
||||
<div className="ssvc-main-content">
|
||||
<form onSubmit={handleSubmit} className="space-y-6">
|
||||
|
Loading…
x
Reference in New Issue
Block a user