File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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' ) {
You can’t perform that action at this time.
0 commit comments