Skip to content

Commit

Permalink
chore: refactor deployment files, compose, edit gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
Veivel committed Jun 18, 2024
1 parent 26adcfb commit 1fe2108
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
id: install-py-dependencies
run: |
python -m pip install --upgrade pip
pip install -r deploy-stg/setup-requirements.txt
pip install -r deploy/stg/setup-requirements.txt
- name: Setup Infisical
id: setup-infisical
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Load Infisical Secrets
id: load-infisical-secrets
run: python3 ./deploy-stg/infisical.py
run: python3 ./deploy/stg/setup.py
env:
INFISICAL_TOKEN: ${{ steps.get-infisical-token.outputs.infisical-token }}
SSH_TIMEOUT: 20
Expand All @@ -88,7 +88,7 @@ jobs:
uses: burnett01/[email protected]
with:
switches: -avzr --progress
path: deploy-stg/
path: deploy/stg/
remote_path: susunjadwal/susunjadwal-backend-stg
remote_host: ${{ secrets.SSH_IP_ADDRESS }}
remote_user: ${{ secrets.SSH_USER }}
Expand Down
4 changes: 4 additions & 0 deletions deploy/prod/infisical.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
infisical:
project_id: d49b238f-40b9-46fb-9863-21f79ce751fb
env: prod
path: /projects/susunjadwal/susunjadwal-backend
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ services:
depends_on:
- rmq-stg
- mongo-stg
# volumes:
# - ./.env:/app/.env:ro
env_file:
- .env
volumes:
- ./.env:/opt/app/.env:ro
ports:
- 8006:8006
networks:
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions deploy-stg/infisical.py → deploy/staging/setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# An extract of RistekCSUI/Infra repository
# This code extract is only for Infisical secrets
# Extracted from RistekCSUI/Infra/setup.py

import os
import sys
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1fe2108

Please sign in to comment.