Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 0 additions & 13 deletions .github/dependabot.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/dependabot.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/.idea
#/node_modules
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,34 @@ default: `latest`
version: 1.22.4
```

### installScriptUrl

URL to the DDEV installation script. This allows you to specify a custom or alternative source for the DDEV installation script.

default: `https://ddev.com/install.sh`

```
- uses: ddev/github-action-setup-ddev@v1
with:
installScriptUrl: "https://raw.githubusercontent.com/ddev/ddev/v1.22.4/scripts/install_ddev.sh"
```

This option is useful for:
- Using a specific version of the installation script from a tagged release
- Testing with a development version from a specific branch
- Using a forked or modified version of the installation script
- Working with air-gapped environments that require local script hosting

Example with custom script source:

```
- name: Setup DDEV with custom installation script
uses: ddev/github-action-setup-ddev@v1
with:
installScriptUrl: "https://my-company.com/scripts/custom_ddev_install.sh"
version: "v1.22.4"
```

## Common recipes

### SSH keys
Expand Down
65 changes: 52 additions & 13 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,62 @@
name: 'Setup DDEV in Github Workflows'
description: |
This action installs **DDEV** in your Github Workflow.
name: 'Setup and start DDEV action'
description: 'Set up your GitHub Actions workflow with DDEV'
author: 'Jonas Eberle and DDEV contributors'
runs:
using: 'node24'
main: 'lib/main.js'
branding:
icon: cpu
color: yellow

inputs:
ddevDir:
description: 'ddev project directory'
description: 'Path to your DDEV project. This path needs to contain the .ddev/ directory.'
required: false
default: '.'

autostart:
description: 'Start ddev automatically'
description: 'Starts your DDEV project immediately.'
required: false
default: true
default: 'true'

version:
description: 'Install a specific ddev version, such as 1.22.4'
description: 'Install a specific DDEV version. Example: 1.24.0'
required: false
default: 'latest'

installScriptUrl:
description: 'URL to the DDEV installation script'
required: true
default: 'https://ddev.com/install.sh'

runs:
using: 'composite'
steps:
- name: Download DDEV install script
shell: bash
run: |
curl -fsSL --retry 3 --retry-max-time 60 --retry-connrefused \
-o /tmp/install_ddev.sh \
"${{ inputs.installScriptUrl }}"

- name: Install DDEV
shell: bash
run: |
if [[ '${{ inputs.version }}' != 'latest' ]]; then
VERSION_ARG="v${{ inputs.version }}"
echo "Installing DDEV version: ${VERSION_ARG}"
else
VERSION_ARG=""
echo "Installing latest DDEV version"
fi

# Make installation script executable
chmod +x /tmp/install_ddev.sh

/tmp/install_ddev.sh ${VERSION_ARG}
ddev config global --instrumentation-opt-in=false --omit-containers=ddev-ssh-agent

- name: Start DDEV project
shell: bash
working-directory: ${{ inputs.ddevDir }}
if: inputs.autostart == 'true'
run: |
ddev start

branding:
icon: 'cpu'
color: yellow
111 changes: 0 additions & 111 deletions lib/main.js

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/uuid

This file was deleted.

56 changes: 0 additions & 56 deletions node_modules/.package-lock.json

This file was deleted.

20 changes: 0 additions & 20 deletions node_modules/.yarn-integrity

This file was deleted.

9 changes: 0 additions & 9 deletions node_modules/@actions/core/LICENSE.md

This file was deleted.

Loading