From 54fa9899eb1b39f7a668f8e3f787a4fd104a26b5 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 14 Jul 2021 13:30:29 +0200 Subject: [PATCH] Avoid using tar when uploading dev builds (#1462) * Avoid using tar when uploading dev builds The GitHub action to upload the images to the os-builds server uses tar before uploading. This creates unnecessary copies and takes a while. Switch to a GitHub action which uploads the images using rsync instead. --- .github/workflows/dev.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 7a47a6024..5d71673dc 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -79,15 +79,16 @@ jobs: haos-builder make BUILDDIR=/build VERSION_DEV=${{ needs.version.outputs.version_dev }} ${{ matrix.board.name }} - name: Upload images - uses: appleboy/scp-action@master + uses: burnett01/rsync-deployments@4.1 with: - host: ${{ secrets.DEV_HOST }} - username: ${{ secrets.DEV_USERNAME }} - port: ${{ secrets.DEV_PORT }} - key: ${{ secrets.DEV_SCP_KEY }} - source: "release/*" - target: ${{ secrets.DEV_TARGET_PATH }}/${{ needs.version.outputs.version_main }}.${{ needs.version.outputs.version_dev }}/ - strip_components: 1 + rsh: -q + switches: -aW --ignore-existing + path: release/ + remote_path: ${{ secrets.DEV_TARGET_PATH }}/${{ needs.version.outputs.version_main }}.${{ needs.version.outputs.version_dev }}/ + remote_host: ${{ secrets.DEV_HOST }} + remote_port: ${{ secrets.DEV_PORT }} + remote_user: ${{ secrets.DEV_USERNAME }} + remote_key: ${{ secrets.DEV_SSH_KEY }} bump_version: name: Bump dev version to ${{ needs.version.outputs.version_main }}.${{ needs.version.outputs.version_dev }}