mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-01-19 02:43:00 +08:00
Update .woodpecker.yml
This commit is contained in:
parent
c136e1e250
commit
1fe73565f4
1 changed files with 1 additions and 2 deletions
|
@ -10,9 +10,8 @@ steps:
|
||||||
- echo "$WOODPECKER_SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
- echo "$WOODPECKER_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
|
||||||
- echo "$PROJECT_DIRECTORY"
|
|
||||||
- ssh "$SSH_HOST" '
|
- ssh "$SSH_HOST" '
|
||||||
cd "$PROJECT_DIRECTORY";
|
cd $PROJECT_DIRECTORY;
|
||||||
docker-compose down;
|
docker-compose down;
|
||||||
docker image rm "$REGISTRY_IMAGE_TAG" || true;
|
docker image rm "$REGISTRY_IMAGE_TAG" || true;
|
||||||
docker volume rm "$DOCKER_DB_VOLUME" || true;
|
docker volume rm "$DOCKER_DB_VOLUME" || true;
|
||||||
|
|
Loading…
Reference in a new issue