Compare commits

3 Commits
3 changed files with 48 additions and 3 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
+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>: