Skip to content

Commit

Permalink
ignore deploy.yml file and update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
weitingzhao committed Sep 24, 2024
1 parent ff90182 commit 6602c11
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SECRET_KEY=<STRONG_KEY_HERE>
DB_ENGINE=timescale.db.backends.postgresql
DB_NAME=smart_trader
DB_USERNAME=postgres
DB_PASS=Spm123!@#
DB_PASS=SmTr123!@#
DB_HOST=host.docker.internal
DB_PORT=5432

Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
name: Deploy to Ubuntu Server

# Define when the workflow should run
on:
push:
branches:
- main
- master # Trigger the workflow when code is pushed to the 'main' branch

# Define the jobs to run in the workflow
jobs:
deploy:
runs-on: ubuntu-latest

steps:
# 1. Checkout the repository code
- name: Checkout code
uses: actions/checkout@v2

# 2. Set up Python to ensure dependencies are handled if needed
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11.9'

# 3. Install project dependencies (requirements.txt)
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

Expand Down

0 comments on commit 6602c11

Please sign in to comment.