-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitpod.yml
More file actions
36 lines (35 loc) · 1.34 KB
/
.gitpod.yml
File metadata and controls
36 lines (35 loc) · 1.34 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
tasks:
- name: WordPress Mock Site
before: |
docker-compose -f .github/docker-compose.yml build
command: |
docker-compose -f .github/docker-compose.yml up -d
echo "Pausing for MySQL to complete..." && sleep 30
docker-compose -f .github/docker-compose.yml exec wp wp core install --url="$(gp url 8080)" --title="Dummy Site" \
--admin_user="admin" --admin_password="password" --admin_email="site@example.com" --allow-root
docker-compose -f .github/docker-compose.yml exec wp wp rewrite structure '/%year%/%monthnum%/%postname%' \
--allow-root
docker-compose -f .github/docker-compose.yml logs -f
- name: WordPress App
before: |
nvm install 22
npm i -g @ionic/cli
npm ci
command: |
nvm use 22
npm i -g @ionic/cli
echo "PUBLIC_URL=$(gp url 3000)" > .env.development.local
echo "REACT_APP_VERSION=\$npm_package_version" >> .env.development.local
cp .env.development.local .env.production.local
ionic serve --no-open
ports:
- name: Frontend
port: 8100
description: Ionic app
visibility: public
onOpen: open-browser
- name: Mock WordPress
port: 8080
description: To run tests against.
visibility: public
onOpen: ignore