mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Update deploy.yml
This commit is contained in:
parent
6632dab37a
commit
23c14e9079
1 changed files with 1 additions and 1 deletions
|
@ -18,12 +18,12 @@ steps:
|
||||||
- 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
|
||||||
- wget -O docker-compose.yml $DOCKER_COMPOSE_URL
|
|
||||||
- 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_VOLUME_DB" || true;
|
docker volume rm "$DOCKER_VOLUME_DB" || true;
|
||||||
|
wget -O docker-compose.yml "$DOCKER_COMPOSE_URL";
|
||||||
docker pull "$REGISTRY_IMAGE_TAG";
|
docker pull "$REGISTRY_IMAGE_TAG";
|
||||||
docker-compose up -d;
|
docker-compose up -d;
|
||||||
docker image prune -af;"
|
docker image prune -af;"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue