1
0

smb-kerberos.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: Samba Kerberos SSO
  2. on:
  3. pull_request:
  4. paths:
  5. - 'apps/files_external/**'
  6. - '.github/workflows/smb-kerberos.yml'
  7. concurrency:
  8. group: smb-kerberos-${{ github.head_ref || github.run_id }}
  9. cancel-in-progress: true
  10. jobs:
  11. smb-kerberos-tests:
  12. runs-on: ubuntu-latest
  13. if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
  14. name: smb-kerberos-sso
  15. steps:
  16. - name: Checkout server
  17. uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
  18. with:
  19. submodules: true
  20. - name: Checkout user_saml
  21. uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
  22. with:
  23. repository: nextcloud/user_saml
  24. path: apps/user_saml
  25. - name: Pull images
  26. run: |
  27. docker pull ghcr.io/icewind1991/samba-krb-test-dc
  28. docker pull ghcr.io/icewind1991/samba-krb-test-apache
  29. docker pull ghcr.io/icewind1991/samba-krb-test-client
  30. docker tag ghcr.io/icewind1991/samba-krb-test-dc icewind1991/samba-krb-test-dc
  31. docker tag ghcr.io/icewind1991/samba-krb-test-apache icewind1991/samba-krb-test-apache
  32. docker tag ghcr.io/icewind1991/samba-krb-test-client icewind1991/samba-krb-test-client
  33. - name: Setup AD-DC
  34. run: |
  35. DC_IP=$(apps/files_external/tests/sso-setup/start-dc.sh)
  36. sleep 1
  37. apps/files_external/tests/sso-setup/start-apache.sh $DC_IP $PWD
  38. echo "DC_IP=$DC_IP" >> $GITHUB_ENV
  39. - name: Set up Nextcloud
  40. run: |
  41. apps/files_external/tests/sso-setup/setup-sso-nc.sh
  42. - name: Test SSO
  43. run: |
  44. apps/files_external/tests/sso-setup/test-sso-smb.sh ${{ env.DC_IP }}
  45. - name: Show logs
  46. if: failure()
  47. run: |
  48. FILEPATH=$(docker exec --user 33 apache ./occ log:file | grep "Log file:" | cut -d' ' -f3)
  49. echo "$FILEPATH:"
  50. docker exec --user 33 apache cat $FILEPATH