|
27 | 27 | workflow: ${{ github.event.workflow_run.workflow_id }} |
28 | 28 | name: gh_context |
29 | 29 |
|
| 30 | + - name: Download e2e image |
| 31 | + id: download-images-artifact |
| 32 | + uses: dawidd6/action-download-artifact@v2 |
| 33 | + with: |
| 34 | + workflow: ${{ github.event.workflow_run.workflow_id }} |
| 35 | + name: crc-e2e-gh |
| 36 | + |
| 37 | + - name: Download installer |
| 38 | + id: download-installer-artifact |
| 39 | + uses: dawidd6/action-download-artifact@v2 |
| 40 | + with: |
| 41 | + workflow: ${{ github.event.workflow_run.workflow_id }} |
| 42 | + name: Windows Installer (windows-2022) |
| 43 | + |
30 | 44 | - name: Add correlation variables to GITHUB_ENV |
31 | 45 | run: | |
32 | 46 | set -xuo |
|
56 | 70 | https://api.github.com/repos/${{ github.repository }}/statuses/${{ env.COMMIT_SHA }} \ |
57 | 71 | -d "{\"state\":\"${OUTCOME}\", \"description\":\"${DESCRIPTION}\", \"context\":\"${CONTEXT}\", \"target_url\":\"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" |
58 | 72 |
|
| 73 | + - name: Write pull-secret |
| 74 | + env: |
| 75 | + PULL_SECRET: ${{ secrets.PULL_SECRET }} |
| 76 | + run: | |
| 77 | + echo $PULL_SECRET > pull-secret |
| 78 | +
|
59 | 79 | - name: Create instance |
60 | 80 | run: | |
61 | 81 | # Create instance |
@@ -87,13 +107,6 @@ jobs: |
87 | 107 | -o ServerAliveCountMax=1200 \ |
88 | 108 | $(cat username)@$(cat host) "systeminfo" |
89 | 109 |
|
90 | | - - name: Download installer |
91 | | - id: download-installer-artifact |
92 | | - uses: dawidd6/action-download-artifact@v3 |
93 | | - with: |
94 | | - workflow: ${{ github.event.workflow_run.workflow_id }} |
95 | | - name: Windows Installer (windows-2022) |
96 | | - |
97 | 110 | - name: Install CRC on host |
98 | 111 | run: | |
99 | 112 | # id_rsa for the host should be in pwd |
@@ -121,20 +134,6 @@ jobs: |
121 | 134 | # Check logs |
122 | 135 | podman logs -f crc-win-support |
123 | 136 |
|
124 | | - - name: Write pull-secret |
125 | | - env: |
126 | | - PULL_SECRET: ${{ secrets.PULL_SECRET }} |
127 | | - run: | |
128 | | - echo $PULL_SECRET > pull-secret |
129 | | -
|
130 | | - - name: Download e2e image |
131 | | - id: download-images-artifact |
132 | | - uses: dawidd6/action-download-artifact@v3 |
133 | | - with: |
134 | | - workflow_conclusion: completed |
135 | | - workflow: build-tests.yml |
136 | | - name: crc-e2e-gh |
137 | | - |
138 | 137 | - name: Run CRC e2e |
139 | 138 | run: | |
140 | 139 | # load crc-e2e image from tar file |
|
0 commit comments