Skip to content

Commit e95fedc

Browse files
authored
Update installation of ddev (#28)
Fixes: #27
1 parent 9dc2229 commit e95fedc

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,18 @@ function run() {
5959
const ddevDir = core.getInput('ddevDir') || '.';
6060
const autostart = core.getBooleanInput('autostart');
6161
yield execShellCommand('echo \'dir: ' + __dirname + '\'');
62-
let cmd = 'curl -fsSL https://apt.fury.io/drud/gpg.key | sudo apt-key add -';
62+
let cmd = 'sudo install -m 0755 -d /etc/apt/keyrings';
6363
console.log(cmd);
6464
yield execShellCommand(cmd);
65-
cmd = 'echo "deb https://apt.fury.io/drud/ * *" | sudo tee -a /etc/apt/sources.list.d/ddev.list';
65+
cmd = 'curl -fsSL https://pkg.ddev.com/apt/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/ddev.gpg > /dev/null';
66+
console.log(cmd);
67+
yield execShellCommand(cmd);
68+
cmd = 'sudo chmod a+r /etc/apt/keyrings/ddev.gpg';
69+
console.log(cmd);
70+
yield execShellCommand(cmd);
71+
cmd = 'echo "deb [signed-by=/etc/apt/keyrings/ddev.gpg] https://pkg.ddev.com/apt/ * *" | sudo tee /etc/apt/sources.list.d/ddev.list >/dev/null';
6672
console.log(cmd);
6773
yield execShellCommand(cmd);
68-
6974
const version = core.getInput('version') || 'latest';
7075
let ddevPackage = 'ddev';
7176
if (version !== 'latest') {

0 commit comments

Comments
 (0)