Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
if: steps.image_exists.outputs.tag == 'not found'
with:
context: .
file: k8s/Dockerfile
file: Dockerfile
push: true
platforms: linux/amd64
tags: ghcr.io/alchemytics/website:${{ env.BUILD_SUFFIX }}${{ env.VERSION }}
Expand Down
44 changes: 22 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
.husky
.astro
dist
# vscode
.vscode

# Node dependencies
node_modules
# build output
dist/

# Logs
logs
*.log
# generated types
.astro/

# Misc
.DS_Store
.fleet
.idea
# dependencies
node_modules/

# Local env files
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.*
!.env.example
.vscode
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
6 changes: 3 additions & 3 deletions k8s/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM node:22.5.1-slim
FROM node:23.8.0-slim
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

WORKDIR /alchemytics/website

# Prepare env
COPY package.json .
COPY pnpm-lock.yaml .
RUN corepack enable && pnpm install --prod --frozen-lockfile --ignore-scripts
RUN pnpm install --prod --frozen-lockfile --ignore-scripts

# Copy configs
COPY astro.config.mjs .
COPY tailwind.config.mjs .
COPY tsconfig.json .

# Copy project files
Expand Down
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,25 @@

Для разработки текущей актуальной версии использовались следующие технологии:

- [Astro](https://astro.build/) - основной фреймворк для разработки сайта
- [Tailwind CSS](https://tailwindcss.com/) - фреймворк для управления CSS на сайте
- [Docker](https://www.docker.com/) - технология для контейнеризации
- [Helm](https://helm.sh/) - для деплоя и управления релизами
- [Astro](https://astro.build/) - основной фреймворк для разработки сайта
- [Tailwind CSS](https://tailwindcss.com/) - фреймворк для управления CSS на сайте
- [Alpine.js](https://alpinejs.dev/) - фреймворк для создания интерактивных realtime объектов на сайте
- [Docker](https://www.docker.com/) - технология для контейнеризации

# Релизы
# Запуск

TBD
Для локальной сборки проекта нужно иметь установленный докер и выполнить следующие команды:

# Скрипты

## Деплой
**Сборка образа**

```bash
docker build . --tag alchemytics-website-local:latest
```
helm --kubeconfig <PATH TO CONFIG> install --set env=<DEV or PROD> --set appVersion=<VERSION> alchemytics-website-release ./k8s/alchemytics-website

**Запуск сайта локально**

```bash
docker run --publish 4321:4321 alchemytics-website-local:latest
```

После этого он будет доступен локально по адресу http://localhost:4321
29 changes: 15 additions & 14 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import { defineConfig } from "astro/config";

import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";

import node from "@astrojs/node";
// @ts-check
import { defineConfig } from 'astro/config';
import alpinejs from '@astrojs/alpinejs';
import node from '@astrojs/node';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwindcss from '@tailwindcss/vite';

// https://astro.build/config
export default defineConfig({
site: "https://alchemytics.ru",
integrations: [tailwind(), mdx(), sitemap()],
output: "server",
adapter: node({
mode: "standalone",
host: true,
}),
site: "https://alchemytics.ru",
integrations: [alpinejs(), mdx(), sitemap()],
adapter: node({
mode: 'standalone'
}),
vite: {
plugins: [tailwindcss()]
}
});
23 changes: 0 additions & 23 deletions k8s/alchemytics-website/.helmignore

This file was deleted.

6 changes: 0 additions & 6 deletions k8s/alchemytics-website/Chart.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions k8s/alchemytics-website/templates/deployment.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions k8s/alchemytics-website/templates/ingress.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions k8s/alchemytics-website/templates/service.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions k8s/alchemytics-website/values.yaml

This file was deleted.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/mdx": "^3.1.5",
"@astrojs/node": "^8.3.3",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.15.2",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"@astrojs/alpinejs": "^0.4.3",
"@astrojs/mdx": "^4.0.8",
"@astrojs/node": "^9.0.2",
"@astrojs/sitemap": "^3.2.1",
"@tailwindcss/vite": "^4.0.6",
"@types/alpinejs": "^3.13.11",
"alpinejs": "^3.14.8",
"astro": "^5.2.5",
"tailwindcss": "^4.0.6"
},
"devDependencies": {
"prettier": "^3.3.3",
"prettier": "^3.5.0",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.6"
"prettier-plugin-tailwindcss": "^0.6.11"
}
}
Loading
Loading