|
15 | 15 | pre-test: |
16 | 16 | runs-on: ubuntu-latest |
17 | 17 | outputs: |
18 | | - selfhosted: 0 |
19 | | - #selfhosted: ${{ github.repository_owner == 'FreeRADIUS' && '1' || '0' }} |
| 18 | + #selfhosted: 0 |
| 19 | + selfhosted: ${{ github.repository_owner == 'FreeRADIUS' && '1' || '0' }} |
20 | 20 | steps: |
21 | 21 | - run: echo "Pre-test job; checking if using self-hosted runners" |
22 | 22 |
|
@@ -84,10 +84,10 @@ jobs: |
84 | 84 | - name: Get pre-built Docker image for self-hosted runner test |
85 | 85 | if: ${{ needs.pre-test.outputs.selfhosted == '1' }} |
86 | 86 | run: | |
87 | | - docker pull docker.internal.networkradius.com/self-hosted-${MULTI_SERVER_ENV_DOCKER_BUILD_OS}:latest |
| 87 | + docker pull docker.internal.networkradius.com/self-hosted |
88 | 88 |
|
89 | 89 | # Tag freeradius build image using using a non-OS specific name to be used with the multi-server docker compose environment. |
90 | | - docker tag docker.internal.networkradius.com/self-hosted-${MULTI_SERVER_ENV_DOCKER_BUILD_OS}:latest freeradius-build:latest |
| 90 | + docker tag docker.internal.networkradius.com/self-hosted freeradius-build:latest |
91 | 91 |
|
92 | 92 | - name: Run test-5hs-autoaccept test |
93 | 93 | if: ${{ needs.pre-test.outputs.selfhosted != '1' }} |
@@ -145,3 +145,29 @@ jobs: |
145 | 145 | echo "TEST FAILED: No Matched line found with equal non-zero counts" |
146 | 146 | exit 1 |
147 | 147 | fi |
| 148 | +
|
| 149 | + # |
| 150 | + # If the CI has failed and the branch is loadgen-5hs-tests then we start a tmate |
| 151 | + # session to provide interactive shell access to the session. |
| 152 | + # |
| 153 | + # The SSH rendezvous point will be emited continuously in the job output, |
| 154 | + # which will look something like: |
| 155 | + # |
| 156 | + # SSH: ssh VfuX8SrNuU5pGPMyZcz7TpJTa@sfo2.tmate.io |
| 157 | + # |
| 158 | + # For example: |
| 159 | + # |
| 160 | + # git push origin loadgen-5hs-tests --force |
| 161 | + # |
| 162 | + # Look at the job output in: https://github.com/FreeRADIUS/freeradius-server/actions |
| 163 | + # |
| 164 | + # ssh VfuX8SrNuU5pGPMyZcz7TpJTa@sfo2.tmate.io |
| 165 | + # |
| 166 | + # Access requires that you have the private key corresponding to the |
| 167 | + # public key of the GitHub user that initiated the job. |
| 168 | + # |
| 169 | + - name: "Debug: Start tmate" |
| 170 | + uses: mxschmitt/action-tmate@v3 |
| 171 | + with: |
| 172 | + limit-access-to-actor: true |
| 173 | + if: ${{ github.ref == 'refs/heads/loadgen-5hs-tests' && failure() }} |
0 commit comments