mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Add production docker-compose file and update pipeline
This commit is contained in:
parent
babab64113
commit
ef95f6d09d
3 changed files with 16 additions and 2 deletions
|
@ -18,6 +18,7 @@ steps:
|
|||
- echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
||||
- chmod 600 /root/.ssh/id_rsa
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
||||
- wget -O $DOCKER_COMPOSE_URL
|
||||
- ssh "$SSH_HOST" "
|
||||
cd "$PROJECT_DIRECTORY";
|
||||
docker-compose down;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue