Skip to content

Commit 1ddad3b

Browse files
committed
Separate start site job.
1 parent 5c7d711 commit 1ddad3b

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/ddev.site.deploy.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,24 @@ jobs:
106106
echo -----------------------------
107107
echo "Cloned code to ${{ inputs.git_root }}"
108108
109-
# Not possible if runner is not root.
110-
# @TODO: Only run if ddev is not installed, and we have root access.
111-
# Leaving here for testing, for now.
109+
start-site:
110+
name: Start site
111+
runs-on: ${{ inputs.github_runs_on }}
112+
needs: deploy-code
113+
114+
environment:
115+
name: ${{ inputs.github_environment }}
116+
url: "http://${{ inputs.ddev_project_name }}.${{ inputs.ddev_project_tld }}?${{ github.run_id }}"
117+
118+
steps:
119+
120+
# Install DDEV, if needed.
121+
# This can only run if running in an isolated CI container with root access.
122+
# @TODO: Figure out how to skip this if ddev already installed.
112123
- name: Setup DDEV
113124
uses: ddev/github-action-setup-ddev@v1
125+
with:
126+
autostart: false
114127

115128
- name: Start site
116129
working-directory: ${{ inputs.git_root }}

0 commit comments

Comments
 (0)