Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #27: Update installation of ddev #28

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,18 @@ function run() {
const ddevDir = core.getInput('ddevDir') || '.';
const autostart = core.getBooleanInput('autostart');
yield execShellCommand('echo \'dir: ' + __dirname + '\'');
let cmd = 'curl -fsSL https://apt.fury.io/drud/gpg.key | sudo apt-key add -';
let cmd = 'sudo install -m 0755 -d /etc/apt/keyrings';
console.log(cmd);
yield execShellCommand(cmd);
cmd = 'echo "deb https://apt.fury.io/drud/ * *" | sudo tee -a /etc/apt/sources.list.d/ddev.list';
cmd = 'curl -fsSL https://pkg.ddev.com/apt/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/ddev.gpg > /dev/null';
console.log(cmd);
yield execShellCommand(cmd);
cmd = 'sudo chmod a+r /etc/apt/keyrings/ddev.gpg';
console.log(cmd);
yield execShellCommand(cmd);
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';
console.log(cmd);
yield execShellCommand(cmd);

const version = core.getInput('version') || 'latest';
let ddevPackage = 'ddev';
if (version !== 'latest') {
Expand Down