Skip to content

Commit

Permalink
Update the .env.example and upload its secret cousin together with th…
Browse files Browse the repository at this point in the history
…e production yaml.
  • Loading branch information
kirkoov committed Jan 15, 2024
1 parent 2d9b76e commit 3e0f869
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ POSTGRES_PASSWORD
POSTGRES_DB
DB_HOST
DB_PORT
DOCKER_USERNAME
12 changes: 2 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,21 @@ jobs:

frontend_tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up nodeJS
# Это готовый воркфлоу для установки Node.js на раннер
uses: actions/setup-node@v3
with:
# Это параметр воркфлоу, указывающий нужную версию Node.js
node-version: 18

- name: Install dependencies
# Эта команда устанавливает зависимости для фронтенда
run: |
cd frontend/
npm ci
- name: Test frontend
# Запускаем тесты
run: |
cd frontend/
npm run test
build_frontend_and_push_to_docker_hub:
name: Push frontend Docker image to DockerHub
runs-on: ubuntu-latest
Expand Down Expand Up @@ -139,16 +133,14 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
# Копируем docker-compose.production.yml на продакшен-сервер
- name: Copy docker-compose.yml via ssh
uses: appleboy/scp-action@master
# Передаём параметры для action appleboy/scp-action:
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_KEY }}
password: ${{ secrets.SSH_PASSPHRASE }}
source: "docker-compose.production.yml"
source: "docker-compose.production.yml, .env"
target: "taski"
- name: Executing remote ssh commands to deploy
uses: appleboy/ssh-action@master
Expand Down
1 change: 1 addition & 0 deletions gateway/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
server {
server_tokens off;
listen 80;

location /api/ {
Expand Down

0 comments on commit 3e0f869

Please sign in to comment.