From 2f7a3cc6912f528091df2b6adc1f8c955782a044 Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Mon, 26 Dec 2022 20:20:15 +0100 Subject: [PATCH] CI: push nonshared packages to temporary feed Signed-off-by: Robert Marko --- .github/workflows/ipq807x.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ipq807x.yaml b/.github/workflows/ipq807x.yaml index 0e82b248847ac..e5934f08650f2 100644 --- a/.github/workflows/ipq807x.yaml +++ b/.github/workflows/ipq807x.yaml @@ -24,6 +24,7 @@ jobs: echo "CONFIG_TARGET_PER_DEVICE_ROOTFS=y\n" >> .config echo "CONFIG_TARGET_ROOTFS_INITRAMFS=y\n" >> .config echo "CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD=y\n" >> .config + echo "CONFIG_ALL_NONSHARED=y\n" >> .config echo "CONFIG_PACKAGE_luci=y\n" >> .config echo "CONFIG_PACKAGE_wpad-basic-wolfssl=m\n" >> .config echo "CONFIG_PACKAGE_wpad-wolfssl=y\n" >> .config @@ -47,6 +48,18 @@ jobs: make -j$(nproc) V=s || \ make V=s + - name: Install SSH Key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_PRIVATE_KEY }} + known_hosts: unnecessary + + - name: Adding known hosts + run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts + + - name: Push nonshared packages to feed + run: rsync -avzr --delete bin/targets/ipq807x/generic/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/ubuntu/openwrt-feed + - name: Remove packages run: rm -rf bin/targets/ipq807x/generic/packages