Skip to content

Commit 9e581a6

Browse files
committed
CI: reduce scope and use github repo private secrets
The ssh-agent is not used or leveraged by github actions, and so we in order to automatically push onto kdevops-results-archive you will need to leverage github repository secrets for the key and the passphrase. Let's reduce the scope as we test this so we can test these simple changes faster. Use the demo repository for now. Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 53569ec commit 9e581a6

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

.github/workflows/fstests.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,36 +32,22 @@ jobs:
3232
run: |
3333
make -j$(nproc)
3434
35-
- name: Run kdevops make bringup
36-
run: |
37-
make bringup
38-
39-
- name: Build linux and boot test nodes on test kernel
40-
run: |
41-
make linux
42-
43-
- name: Build fstests
44-
run: |
45-
make fstests
46-
47-
- name: Run just one fstest to verify we tests and test collection works
48-
run: |
49-
make fstests-baseline TESTS=generic/003
50-
51-
- name: Get systemd journal files
52-
if: always() # This ensures the step runs even if previous steps failed
53-
run: |
54-
make journal-dump
35+
- name: Start SSH Agent
36+
if: always() # Ensure this step runs even if previous steps failed
37+
uses: webfactory/[email protected]
38+
with:
39+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
40+
ssh-passphrase: ${{ secrets.SSH_PASSPHRASE }}
5541

5642
- name: Build our kdevops archive results
5743
if: always() # This ensures the step runs even if previous steps failed
5844
run: |
59-
make ci-archive
45+
make ci-archive DEMO=1
6046
6147
- name: Find and kdevops results zip file
6248
if: always() # This ensures the step runs even if previous steps failed
6349
run: |
64-
ZIP_FILE=$(find kdevops/archive -name "*.zip" -type f | head -n 1)
50+
ZIP_FILE=$(find ${{ env.KDEVOPS_PATH }}/archive -name "*.zip" -type f | head -n 1)
6551
echo "Found zip file: $ZIP_FILE"
6652
echo "KDEVOPS_ARTIFACT_PATH=$ZIP_FILE" >> $GITHUB_ENV
6753

0 commit comments

Comments
 (0)