Skip to content

Commit 5e3bbfc

Browse files
stefan-niedermannAndyScherzinger
authored andcommitted
Configure trusted domain in env variable
Signed-off-by: Andy Scherzinger <[email protected]>
1 parent 16b7649 commit 5e3bbfc

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/e2e.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
SQLITE_DATABASE: db.sqlite
1616
NEXTCLOUD_ADMIN_USER: Test
1717
NEXTCLOUD_ADMIN_PASSWORD: Test
18+
NEXTCLOUD_TRUSTED_DOMAINS: 172.17.0.1
1819
ports:
1920
- 8080:80
2021
options: >-
@@ -27,12 +28,8 @@ jobs:
2728
- name: Checkout
2829
uses: actions/checkout@v2
2930

30-
- name: Make Nextcloud accessible from AVD
31-
run: |
32-
docker exec `docker ps -f 'name=_nextcloud' -l -q` bash -c 'runuser -u www-data -- php occ config:system:set trusted_domains 2 --value=172.17.0.1'
33-
3431
# TODO 172.17.0.1 is the hard coded IP address of the docker container. Make this more generic.
35-
- name: Verify Nextcloud being present on 172.17.0.1
32+
- name: Verify Nextcloud being present
3633
run: |
3734
curl -v -X GET 'http://Test:[email protected]:8080/ocs/v2.php/cloud/capabilities?format=json' -H 'OCS-APIRequest: true' | jq
3835
@@ -88,4 +85,4 @@ jobs:
8885
adb shell pm grant com.nextcloud.android.beta android.permission.READ_EXTERNAL_STORAGE
8986
adb logcat -c || true
9087
adb logcat -s "E2E" -v color &
91-
./gradlew connectedDebugAndroidTest || true
88+
./gradlew connectedDebugAndroidTest || true

0 commit comments

Comments
 (0)