From 8ee95e15eb7916c402b883359cc558476ab4d9f5 Mon Sep 17 00:00:00 2001 From: Deploy Bot Date: Thu, 17 Jul 2025 20:40:24 -0400 Subject: [PATCH] Switch to root user for Dokku commands --- .github/workflows/test.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b3819bd..c56782d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install -y bats ssh netcat-openbsd + sudo apt-get install -y bats - name: Set up SSH run: | @@ -50,7 +50,7 @@ jobs: Host dokku-test HostName localhost Port 2222 - User dokku + User root StrictHostKeyChecking no UserKnownHostsFile /dev/null IdentityFile ~/.ssh/id_ed25519 @@ -80,14 +80,14 @@ jobs: sleep 2 done - # Add the key to the dokku user - echo "Adding SSH key to dokku user..." + # Add the key to the root user + echo "Adding SSH key to root user..." docker exec -i $CONTAINER_ID bash -c ' - mkdir -p /home/dokku/.ssh - chmod 700 /home/dokku/.ssh - cat >> /home/dokku/.ssh/authorized_keys - chmod 600 /home/dokku/.ssh/authorized_keys - chown -R dokku:dokku /home/dokku/.ssh + mkdir -p /root/.ssh + chmod 700 /root/.ssh + cat >> /root/.ssh/authorized_keys + chmod 600 /root/.ssh/authorized_keys + chown -R root:root /root/.ssh ' < ~/.ssh/id_ed25519.pub || true # Test SSH connection