Skip to content

Commit

Permalink
Configure trusted domain in env variable
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
  • Loading branch information
stefan-niedermann authored and AndyScherzinger committed Jan 19, 2024
1 parent ad93727 commit b658a82
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
SQLITE_DATABASE: db.sqlite
NEXTCLOUD_ADMIN_USER: Test
NEXTCLOUD_ADMIN_PASSWORD: Test
NEXTCLOUD_TRUSTED_DOMAINS: 172.17.0.1
ports:
- 8080:80
options: >-
Expand All @@ -27,12 +28,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Make Nextcloud accessible from AVD
run: |
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'
# TODO 172.17.0.1 is the hard coded IP address of the docker container. Make this more generic.
- name: Verify Nextcloud being present on 172.17.0.1
- name: Verify Nextcloud being present
run: |
curl -v -X GET 'http://Test:Test@172.17.0.1:8080/ocs/v2.php/cloud/capabilities?format=json' -H 'OCS-APIRequest: true' | jq
Expand Down Expand Up @@ -88,4 +85,4 @@ jobs:
adb shell pm grant com.nextcloud.android.beta android.permission.READ_EXTERNAL_STORAGE
adb logcat -c || true
adb logcat -s "E2E" -v color &
./gradlew connectedDebugAndroidTest || true
./gradlew connectedDebugAndroidTest || true

0 comments on commit b658a82

Please sign in to comment.