initial
All checks were successful
Build and Deploy koneko.rocks / build-and-deploy (push) Successful in 9s

This commit is contained in:
2025-08-02 20:53:18 +02:00
commit 56b2574e5a
6 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,38 @@
name: Build and Deploy koneko.rocks
on:
push:
branches:
- main
jobs:
build-and-deploy:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Verify Docker access
run: |
echo "Checking Docker access from container..."
docker version
docker compose version
# use this as template if you need to build
#- name: Build project
# run: |
# echo "Running build..."
# ./build.sh
- name: Store artifact
run: |
echo "Storing artifact..."
mkdir -p /opt/artifacts/koneko-static-site
cp -r . /opt/artifacts/koneko-static-site/
- name: Deploy with Docker Compose
run: |
echo "Deploying with docker-compose..."
cd /opt/artifacts/koneko-static-site
docker compose down
docker compose up -d --build

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:alpine
COPY index.html /usr/share/nginx/html/index.html
COPY tower-fall.svg /usr/share/nginx/html/tower-fall.svg

0
README.md Normal file
View File

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
services:
web:
container_name: htg-landing
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
ports:
- "5556:80"

61
index.html Normal file
View File

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="tower-fall.svg" type="image/svg">
<title>HyperTower Games</title>
<style>
/* Reset & base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #000;
color: #f5f5f5;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
}
/* SVG Icon */
.icon {
width: 120px;
height: 120px;
margin-bottom: 1.5rem;
}
/* Title */
h1 {
font-size: 2.8rem;
margin-bottom: 0.5rem;
letter-spacing: 1px;
}
/* Slogan */
p {
font-size: 1.2rem;
color: #aaa;
}
/* Subtle glow effect */
.glow {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}
</style>
</head>
<body>
<img src="tower-fall.svg" width="256px" height="256px">
<h1 class="glow">HyperTower Games</h1>
<p>💥 We try to make games. 💥</p>
<a href="https://github.com/HyperTowerGames">Github</a>
<a href="https://game-icons.net/1x1/lorc/tower-fall.html">Icon Attribution</a>
</body>
</html>

1
tower-fall.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="height: 512px; width: 512px;"><path d="M0 0h512v512H0z" fill="#000" fill-opacity="1"></path><g class="" transform="translate(0,0)" style=""><path d="M91.033 22.14v84.368l46.434 57.56v16.166l98.93 44.13 27.29-34.305 65.9 4.01v-30l46.433-57.562v-84.37h-48.916v39.796H297.33V22.14h-49.45v39.794h-29.24V22.14h-49.45v39.794h-29.243V22.14H91.033zm46.434 178.557v195.17h-29.88l-21.792 94.695h295.463l-21.79-94.695h-29.882V370.02l-38.72-24.07-23.712 29.292 28.432 25.737-12.543 13.854L241.5 377.23l33.37-41.222-91.65-56.973 33.288-43.082-79.04-35.256zm155.013 19.11 19.04 34.994 31.005-5.405-17.287-29.588H292.48zm66.682 10.088 17.293 74.527 55.553 2.068-13.442-57.967-59.404-18.628zm-135.47 27.328-13.034 16.865 37.393 23.244 18.167-20.61-42.526-19.5zm73.115 13.056-32.66 37.056 65.44 40.68V298.2l-32.78-27.92zm85.154 51.745-5.16 29.584 33.49 18.158-.093-31.258-28.236-16.485zm79.91 6.928-23.073 23.197 8.697 33.106 25.717-18.08-11.34-38.223zm-65.85 68.992-10.97 36.977 24.88 17.49 8.414-32.025-22.323-22.442z" fill="#fff" fill-opacity="1"></path></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB