mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Update .woodpecker.yml
This commit is contained in:
parent
0b377fac75
commit
9b6ecc20e6
1 changed files with 2 additions and 5 deletions
|
@ -18,14 +18,11 @@ steps:
|
||||||
- branch: master
|
- branch: master
|
||||||
event: push
|
event: push
|
||||||
commands:
|
commands:
|
||||||
# SSH Setup
|
- mkdir -p /root/.ssh/ # Add SSH key to remote machine
|
||||||
- mkdir -p /root/.ssh/
|
|
||||||
# Add SSH key to remote machine
|
|
||||||
- echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
- echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
||||||
- chmod 600 /root/.ssh/id_rsa
|
- chmod 600 /root/.ssh/id_rsa
|
||||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
||||||
# SSH to remote machine and execute commands
|
- ssh $"REMOTE_HOST" ' # SSH to remote machine and execute commands
|
||||||
- ssh $"REMOTE_HOST" '
|
|
||||||
cd "/mnt/nvme/files/docker projects/DRF-Template";
|
cd "/mnt/nvme/files/docker projects/DRF-Template";
|
||||||
# Pull latest image and reset the DB
|
# Pull latest image and reset the DB
|
||||||
docker-compose -f docker-compose.demo.yml down;
|
docker-compose -f docker-compose.demo.yml down;
|
||||||
|
|
Loading…
Reference in a new issue