commit e37f00775f39be5f6f4885acb9fa1fc390ff08ab Author: koneko <67551503+koneko@users.noreply.github.com> Date: Mon Jul 14 01:07:42 2025 +0200 initial diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..0b59969 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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 + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5ef646a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:alpine +COPY index.html /usr/share/nginx/html/index.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..51b372f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +services: + web: + container_name: koneko-landing + restart: unless-stopped + build: + context: . + dockerfile: Dockerfile + labels: + - "traefik.enable=true" + - "traefik.http.routers.koneko.rule=Host(`koneko.rocks`)" + - "traefik.http.routers.koneko.entrypoints=websecure" + - "traefik.http.routers.koneko.tls=true" + - "traefik.http.routers.koneko.tls.certresolver=letsencrypt" + - "traefik.http.services.koneko.loadbalancer.server.port=80" + networks: + - frontend + +networks: + frontend: + external: true # Use the external Traefik network (if Traefik is running on this network) + diff --git a/index.html b/index.html new file mode 100644 index 0000000..2ea6c4f --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + + + + + koneko.rocks + + + blog site +

Landing page because I have nothing better to put here. I might scrap this domain in general.

+ +