mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-14 20:49:42 +03:00
asdfgdasfsa
This commit is contained in:
@@ -30,4 +30,22 @@ jobs:
|
|||||||
backend
|
backend
|
||||||
db
|
db
|
||||||
- name: Run the Docker image
|
- name: Run the Docker image
|
||||||
run: SERVER_PORT=3005 docker compose up -d backend db redis
|
run: SERVER_PORT=3005 docker compose up -d backend db redis --build
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script: |
|
||||||
|
cd /home/sergey/test-repo
|
||||||
|
git fetch
|
||||||
|
git pull
|
||||||
|
git submodule update --recursive
|
||||||
|
SERVER_PORT=3005 docker compose up -d backend db redis
|
||||||
33
.github/workflows/serve.yml
vendored
33
.github/workflows/serve.yml
vendored
@@ -1,33 +0,0 @@
|
|||||||
name: Aboba
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [test]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: catthehacker/ubuntu:act-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up Docker BuildX
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Git Submodule Update
|
|
||||||
run: git submodule update --init --recursive
|
|
||||||
|
|
||||||
- name: Copy .env file
|
|
||||||
run: cp .env.example .env
|
|
||||||
|
|
||||||
- name: Build the Docker image
|
|
||||||
uses: isbang/compose-action@v1.5.1
|
|
||||||
with:
|
|
||||||
compose_file: "./docker-compose.yml"
|
|
||||||
services: |
|
|
||||||
backend
|
|
||||||
db
|
|
||||||
- name: Run the Docker image
|
|
||||||
run: SERVER_PORT=3005 docker compose up -d backend db redis
|
|
||||||
Reference in New Issue
Block a user