i tried to build pipeline for python fastapi but it is just a basic one i am running it with a script.sh file i want to build a professional looking pipeline for my project can some one help me on this.
i am also attaching my pipeline here which i have made using my knowledge.
image: python:3.10
pipelines:
branches:
master:
- step:
name: Building
script:
- python3 -m venv venv
- source venv/bin/activate # Activate the virtual environment
- pip install -r requirements.txt
- step:
name: Deploying the app
deployment: Production
script:
- pipe: atlassian/rsync-deploy:0.9.0
variables:
USER: $DEPLOY_USER
SERVER: $DEPLOY_SERVER
REMOTE_PATH: $REMOTE_PATH
LOCAL_PATH: '.'
after-script:
- ssh $DEPLOY_USER@$DEPLOY_SERVER "cd $REMOTE_PATH && chmod +x script.sh && ./script.sh"
any help would be appreciated.