Skip to content

Commit 683b688

Browse files
scp boot image to boot server
1 parent 3b2a8b6 commit 683b688

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build-alpine-netboot-image-zfs.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313

14-
- name: Setting up SSH key to publish netboot image
15-
uses: webfactory/ssh-agent@v0.8.0
16-
with:
17-
ssh-private-key: ${{ secrets.BOOT_SERVER_SSH_PRIVATE_KEY }}
18-
19-
- name: SSH into remote host
20-
run: |
21-
ssh -o StrictHostKeyChecking=no ${{ secrets.BOOT_SERVER_SSH_USERNAME }}@${{ secrets.BOOT_SERVER_IP_ADDRESS }} "date"
22-
2314
- name: Build alpine image
2415
run: |
2516
podman run -it --rm -v $(pwd):/root/workdir alpine sh /root/workdir/build-alpine-netboot-zfs.sh
@@ -28,6 +19,15 @@ jobs:
2819
run: |
2920
./patch-alpine-netboot-image-with-zfs.sh
3021
22+
- name: Setting up SSH key to publish netboot image
23+
uses: webfactory/ssh-agent@v0.8.0
24+
with:
25+
ssh-private-key: ${{ secrets.BOOT_SERVER_SSH_PRIVATE_KEY }}
26+
27+
- name: scp netboot image to boot server
28+
run: |
29+
scp -o StrictHostKeyChecking=no iso/boot/alpine-netboot*.tar.gz ${{ secrets.BOOT_SERVER_SSH_USERNAME }}@${{ secrets.BOOT_SERVER_IP_ADDRESS }}:{{ secrets.BOOT_SERVER_IMG_DEST_DIR }}
30+
3131
- name: Publish alpine netboot image artifact
3232
uses: actions/upload-artifact@v3
3333
with:

0 commit comments

Comments
 (0)