Update deploy.yml

This commit is contained in:
Keannu Christian Bernasol 2025-09-01 02:38:31 +08:00
parent 6632dab37a
commit 23c14e9079

View file

@ -18,12 +18,12 @@ 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.yml $DOCKER_COMPOSE_URL
- ssh "$SSH_HOST" "
cd "$PROJECT_DIRECTORY";
docker-compose down;
docker image rm "$REGISTRY_IMAGE_TAG" || true;
docker volume rm "$DOCKER_VOLUME_DB" || true;
wget -O docker-compose.yml "$DOCKER_COMPOSE_URL";
docker pull "$REGISTRY_IMAGE_TAG";
docker-compose up -d;
docker image prune -af;"