Compare commits

3 Commits
5 changed files with 70 additions and 26 deletions

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
name: Docker Build and Push
on:
push:
branches: [main]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Registry
uses: docker/login-action@v2
with:
registry: b.codrs.ru
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name == 'push' }}
tags: |
b.codrs.ru/${{ vars.DOCKER_USERNAME }}/codrs.ru:latest
b.codrs.ru/${{ vars.DOCKER_USERNAME }}/codrs.ru:${{ github.sha }}
+14
View File
@@ -0,0 +1,14 @@
FROM python:3.11-slim
RUN apt-get update && apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs && \
npm install -g sass && \
apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
CMD flask run
+15 -16
View File
@@ -23,8 +23,13 @@ $red: #f38ba8;
$green: #a6e3a1; $green: #a6e3a1;
$peach: #fab387; $peach: #fab387;
$blue: #89b4fa; $blue: #89b4fa;
$mauve: #8839ef;
html {
height: 100%;
}
body { body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -52,19 +57,24 @@ a {
text-decoration: underline; text-decoration: underline;
text-decoration-color: $blue; text-decoration-color: $blue;
text-underline-offset: 1px; text-underline-offset: 1px;
transition: text-underline-offset 0.3s ease; transition: 0.3s ease;
&:hover { &:hover {
text-underline-offset: 3px; text-underline-offset: 3px;
} }
&:active { &:active {
transition: none !important;
display: inline-block; display: inline-block;
transform: scale(.98); transform: scale(.98) !important;
} }
&.block { &.block {
text-decoration: none; text-decoration: none;
&:hover {
transform: scale(1.02) translateY(-.25rem);
}
} }
} }
@@ -84,10 +94,7 @@ footer {
background-color: $crust; background-color: $crust;
margin-top: 32px; margin-top: 32px;
padding: 16px; padding: 16px;
column-gap: 4ch;
div {
margin-right: 32px;
}
} }
.mono { .mono {
@@ -104,12 +111,6 @@ footer {
} }
} }
.services-block {
display: flex;
flex-direction: column;
width: fit-content;
}
.block { .block {
display: block; display: block;
background-color: $surface0; background-color: $surface0;
@@ -136,17 +137,15 @@ footer {
font-size: x-large; font-size: x-large;
.icon { .icon {
margin-right: 8px; margin-right: .5ch;
width: 48px;
border-radius: 8px;
} }
} }
} }
.icon { .icon {
width: 1.5em; width: 1.5em;
height: 1.5em;
vertical-align: middle; vertical-align: middle;
border-radius: .2em;
} }
@font-face { @font-face {
+3 -3
View File
@@ -3,10 +3,10 @@
{% block title %}О хосте{% endblock %} {% block title %}О хосте{% endblock %}
{% block content %} {% block content %}
<div class="block"> <a href="https://play2go.cloud/" target="_blank" class="block">
<strong>Хостер</strong>: <a href="https://play2go.cloud/">play2go</a> <strong>Хостер</strong>: play2go
<p>Неплохой, недорогой. В прошлом были проблемы с сетью</p> <p>Неплохой, недорогой. В прошлом были проблемы с сетью</p>
</div> </a>
<div class="block"> <div class="block">
<strong>Характеристики</strong>: <strong>Характеристики</strong>:
+7 -7
View File
@@ -6,20 +6,20 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="block"> <a href="https://b.codrs.ru" target="_blank" class="block">
<div class="header"> <div class="header">
<img src="/static/icon/service/sharkey.webp" class="icon"/> <img src="/static/icon/service/sharkey.webp" class="icon"/>
<a href="https://b.codrs.ru" target="_blank"><strong>Sharkey</strong></a> <strong>Sharkey</strong>
</div> </div>
<p>Федеративная микроблогинговая система поверх протокола ActivityPub</p> <p>Федеративная микроблогинговая система поверх протокола ActivityPub</p>
</div> </a>
<div class="block"> <a href="https://g.codrs.ru" target="_blank" class="block">
<div class="header"> <div class="header">
<img src="/static/icon/service/gitea.webp" class="icon"/> <img src="/static/icon/service/gitea.webp" class="icon"/>
<a href="https://g.codrs.ru" target="_blank"><strong>Gitea</strong></a> <strong>Gitea</strong>
</div>
<p>Selhosted хранилище git-репозиториев со свободным исходным кодом</p>
</div> </div>
<p>Selfhosted хранилище git-репозиториев со свободным исходным кодом</p>
</a>
<div class="block"> <div class="block">
<p><a href="https://m.codrs.ru" target="_blank"><strong>Matrix</strong></a> &mdash; федеративный мессанджер</p> <p><a href="https://m.codrs.ru" target="_blank"><strong>Matrix</strong></a> &mdash; федеративный мессанджер</p>