|
9 | 9 | @echo " "
|
10 | 10 | @echo " build-push build image and upload to ghcr.io"
|
11 | 11 | @echo " "
|
12 |
| - @echo " run install AIImageGeneratorBot for Nextcloud Last" |
13 | 12 | @echo " run27 install AIImageGeneratorBot for Nextcloud 27"
|
| 13 | + @echo " run install AIImageGeneratorBot for Nextcloud 28" |
| 14 | + @echo " run install AIImageGeneratorBot for Nextcloud 29" |
14 | 15 | @echo " "
|
15 | 16 | @echo " For development of this example use PyCharm run configurations. Development is always set for last Nextcloud."
|
16 | 17 | @echo " First run 'AIImageGeneratorBot' and then 'make registerXX', after that you can use/debug/develop it and easy test."
|
17 | 18 | @echo " "
|
18 |
| - @echo " register perform registration of running 'AIImageGeneratorBot' into the 'manual_install' deploy daemon." |
19 | 19 | @echo " register27 perform registration of running 'AIImageGeneratorBot' into the 'manual_install' deploy daemon."
|
| 20 | + @echo " register28 perform registration of running 'AIImageGeneratorBot' into the 'manual_install' deploy daemon." |
| 21 | + @echo " register29 perform registration of running 'AIImageGeneratorBot' into the 'manual_install' deploy daemon." |
20 | 22 |
|
21 | 23 | .PHONY: build-push
|
22 | 24 | build-push:
|
23 | 25 | docker login ghcr.io
|
24 |
| - docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/ai_image_generator_bot:2.0.0 --tag ghcr.io/cloud-py-api/ai_image_generator_bot:latest . |
| 26 | + docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/ai_image_generator_bot:2.1.0 . |
25 | 27 |
|
26 |
| -.PHONY: run |
27 |
| -run: |
28 |
| - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true |
29 |
| - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot --force-scopes \ |
30 |
| - --info-xml https://raw.githubusercontent.com/cloud-py-api/ai_image_generator_bot/main/appinfo/info.xml |
| 28 | +.PHONY: build-push-latest |
| 29 | +build-push-latest: |
| 30 | + docker login ghcr.io |
| 31 | + docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag ghcr.io/cloud-py-api/ai_image_generator_bot:latest . |
31 | 32 |
|
32 | 33 | .PHONY: run27
|
33 | 34 | run27:
|
34 | 35 | docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true
|
35 | 36 | docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot --force-scopes \
|
36 | 37 | --info-xml https://raw.githubusercontent.com/cloud-py-api/ai_image_generator_bot/main/appinfo/info.xml
|
37 | 38 |
|
38 |
| -.PHONY: register |
39 |
| -register: |
40 |
| - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true |
41 |
| - docker exec master-nextcloud-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot manual_install --json-info \ |
42 |
| - "{\"id\":\"ai_image_generator_bot\",\"name\":\"AIImageGeneratorBot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9080,\"scopes\":[\"TALK\", \"TALK_BOT\", \"FILES\", \"FILES_SHARING\"],\"system\":1}" \ |
43 |
| - --force-scopes --wait-finish |
| 39 | +.PHONY: run28 |
| 40 | +run28: |
| 41 | + docker exec master-stable28-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true |
| 42 | + docker exec master-stable28-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot --force-scopes \ |
| 43 | + --info-xml https://raw.githubusercontent.com/cloud-py-api/ai_image_generator_bot/main/appinfo/info.xml |
| 44 | + |
| 45 | +.PHONY: run29 |
| 46 | +run29: |
| 47 | + docker exec master-stable29-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true |
| 48 | + docker exec master-stable29-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot --force-scopes \ |
| 49 | + --info-xml https://raw.githubusercontent.com/cloud-py-api/ai_image_generator_bot/main/appinfo/info.xml |
44 | 50 |
|
45 | 51 | .PHONY: register27
|
46 | 52 | register27:
|
47 | 53 | docker exec master-stable27-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true
|
48 | 54 | docker exec master-stable27-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot manual_install --json-info \
|
49 | 55 | "{\"id\":\"ai_image_generator_bot\",\"name\":\"AIImageGeneratorBot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9080,\"scopes\":[\"TALK\", \"TALK_BOT\", \"FILES\", \"FILES_SHARING\"],\"system\":1}" \
|
50 | 56 | --force-scopes --wait-finish
|
| 57 | + |
| 58 | +.PHONY: register28 |
| 59 | +register28: |
| 60 | + docker exec master-stable28-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true |
| 61 | + docker exec master-stable28-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot manual_install --json-info \ |
| 62 | + "{\"id\":\"ai_image_generator_bot\",\"name\":\"AIImageGeneratorBot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9080,\"scopes\":[\"TALK\", \"TALK_BOT\", \"FILES\", \"FILES_SHARING\"],\"system\":1}" \ |
| 63 | + --force-scopes --wait-finish |
| 64 | + |
| 65 | +.PHONY: register29 |
| 66 | +register29: |
| 67 | + docker exec master-stable29-1 sudo -u www-data php occ app_api:app:unregister ai_image_generator_bot --silent --force || true |
| 68 | + docker exec master-stable29-1 sudo -u www-data php occ app_api:app:register ai_image_generator_bot manual_install --json-info \ |
| 69 | + "{\"id\":\"ai_image_generator_bot\",\"name\":\"AIImageGeneratorBot\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"port\":9080,\"scopes\":[\"TALK\", \"TALK_BOT\", \"FILES\", \"FILES_SHARING\"],\"system\":1}" \ |
| 70 | + --force-scopes --wait-finish |
0 commit comments