scripts: Use `seed` user instead of `root`

This commit is contained in:
Alexis Sellier 2023-05-12 11:08:59 +02:00
parent eef813fd46
commit 1dfaab6b4d
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -12,11 +12,11 @@ fi
echo "Using commit $HEAD"
echo "Copying files.."
scp .env.seed root@"$HOST":.env
scp docker-compose.yml root@"$HOST":docker-compose.yml
scp .env.seed seed@"$HOST":.env
scp docker-compose.yml seed@"$HOST":docker-compose.yml
echo "Deploying.."
ssh root@$HOST << EOF
ssh seed@"$HOST" << EOF
docker system prune --all --force
RADICLE_IMAGE_TAG=$HEAD docker-compose --file docker-compose.yml pull
RADICLE_IMAGE_TAG=$HEAD docker-compose --file docker-compose.yml down