-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathinstall.yaml
More file actions
40 lines (37 loc) · 1.79 KB
/
install.yaml
File metadata and controls
40 lines (37 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: ddev-playwright
# list of files and directories listed that are copied into project .ddev directory
# Each file should contain #ddev-generated so it can be replaced by a later `ddev get`
# if it hasn't been modified by the user.
# DDEV environment variables can be interpolated into these filenames
project_files:
- commands/host/install-playwright
- commands/web/playwright
- web-build/disabled.Dockerfile.playwright
- web-build/Dockerfile.task
- web-build/Dockerfile.uv
- web-build/install-task.sh
- web-build/install-kasmvnc.sh
- web-build/kasmvnc.yaml
- web-build/xstartup
- config.playwright.yml
- docker-compose.sqlite.yaml
# Manage .gitignore entries via post_install_actions so other addons (e.g.
# ddev-playwright-cli) can append their own entries without being overwritten.
post_install_actions:
- |
#ddev-description:Add ddev-playwright entries to web-build .gitignore
GITIGNORE="${DDEV_APPROOT}/.ddev/web-build/.gitignore"
touch "$GITIGNORE"
if ! grep -qx "Dockerfile.playwright" "$GITIGNORE"; then
printf '\n# This file is optionally copied to enable playwright from\n# disabled.Dockerfile.playwright.\nDockerfile.playwright\n' >> "$GITIGNORE"
fi
if ! grep -qx "playwright" "$GITIGNORE"; then
printf '\n# This directory is always copied from /test/playwright.\nplaywright\n' >> "$GITIGNORE"
fi
removal_actions:
- if grep "#ddev-generated" web-build/Dockerfile.playwright 2>/dev/null; then rm web-build/Dockerfile.playwright; fi
- |
GITIGNORE="${DDEV_APPROOT}/.ddev/web-build/.gitignore"
if [ -f "$GITIGNORE" ]; then
sed -i '/# This file is optionally copied to enable playwright from$/d; /# disabled\.Dockerfile\.playwright\.$/d; /^Dockerfile\.playwright$/d; /# This directory is always copied from/d; /^playwright$/d' "$GITIGNORE"
fi