|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml pull |
4 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml up --force-recreate --detach --remove-orphans |
| 3 | +if [ -z "${TEMPLATES_RELEASE}" ] |
| 4 | +then |
| 5 | + echo "TEMPLATES_RELEASE must be set to a valid tag." |
| 6 | + exit 2 |
| 7 | +fi |
5 | 8 |
|
6 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console doctrine:migrations:migrate --no-interaction |
| 9 | +echo "Loading templates with tag: ${TEMPLATES_RELEASE}." |
7 | 10 |
|
8 | 11 | # app:template:load |
9 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/book-review-config-main.json |
10 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/calendar-config-main.json |
11 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/contacts-config-main.json |
12 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/iframe-config-main.json |
13 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/image-text-config-main.json |
14 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/instagram-feed-config-main.json |
15 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/poster-config-main.json |
16 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/rss-config-main.json |
17 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/slideshow-config-main.json |
18 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/table-config-main.json |
19 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/travel-config-main.json |
20 | | -docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load https://raw.githubusercontent.com/os2display/display-templates/main/build/video-config-main.json |
| 12 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/book-review-config-main.json |
| 13 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/calendar-config-main.json |
| 14 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/contacts-config-main.json |
| 15 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/iframe-config-main.json |
| 16 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/image-text-config-main.json |
| 17 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/instagram-feed-config-main.json |
| 18 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/poster-config-main.json |
| 19 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/rss-config-main.json |
| 20 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/slideshow-config-main.json |
| 21 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/table-config-main.json |
| 22 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/travel-config-main.json |
| 23 | +docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:template:load -p https://raw.githubusercontent.com/os2display/display-templates/refs/tags/${TEMPLATES_RELEASE}/build/video-config-main.json |
21 | 24 |
|
22 | 25 | # app:screen-layouts:load |
23 | 26 | docker compose --env-file .env.docker.local -f docker-compose.server.yml exec --user deploy api bin/console app:screen-layouts:load --update --cleanup-regions https://raw.githubusercontent.com/os2display/display-templates/main/src/screen-layouts/full-screen.json |
|
0 commit comments