Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e70bfc1b4 |
No files matched your search
@@ -1,31 +0,0 @@
|
|||||||
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
@@ -1,14 +0,0 @@
|
|||||||
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
@@ -3,10 +3,10 @@
|
|||||||
{% block title %}О хосте{% endblock %}
|
{% block title %}О хосте{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<a href="https://play2go.cloud/" target="_blank" class="block">
|
<div class="block">
|
||||||
<strong>Хостер</strong>: play2go
|
<strong>Хостер</strong>: <a href="https://play2go.cloud/">play2go</a>
|
||||||
<p>Неплохой, недорогой. В прошлом были проблемы с сетью</p>
|
<p>Неплохой, недорогой. В прошлом были проблемы с сетью</p>
|
||||||
</a>
|
</div>
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<strong>Характеристики</strong>:
|
<strong>Характеристики</strong>:
|
||||||
|
|||||||
Reference in new issue
Block a user