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.
This commit is contained in:
Stefan Agner 2021-07-14 13:30:29 +02:00 committed by GitHub
parent c58a568f64
commit 54fa9899eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,15 +79,16 @@ jobs:
haos-builder make BUILDDIR=/build VERSION_DEV=${{ needs.version.outputs.version_dev }} ${{ matrix.board.name }} haos-builder make BUILDDIR=/build VERSION_DEV=${{ needs.version.outputs.version_dev }} ${{ matrix.board.name }}
- name: Upload images - name: Upload images
uses: appleboy/scp-action@master uses: burnett01/rsync-deployments@4.1
with: with:
host: ${{ secrets.DEV_HOST }} rsh: -q
username: ${{ secrets.DEV_USERNAME }} switches: -aW --ignore-existing
port: ${{ secrets.DEV_PORT }} path: release/
key: ${{ secrets.DEV_SCP_KEY }} remote_path: ${{ secrets.DEV_TARGET_PATH }}/${{ needs.version.outputs.version_main }}.${{ needs.version.outputs.version_dev }}/
source: "release/*" remote_host: ${{ secrets.DEV_HOST }}
target: ${{ secrets.DEV_TARGET_PATH }}/${{ needs.version.outputs.version_main }}.${{ needs.version.outputs.version_dev }}/ remote_port: ${{ secrets.DEV_PORT }}
strip_components: 1 remote_user: ${{ secrets.DEV_USERNAME }}
remote_key: ${{ secrets.DEV_SSH_KEY }}
bump_version: bump_version:
name: Bump dev version to ${{ needs.version.outputs.version_main }}.${{ needs.version.outputs.version_dev }} name: Bump dev version to ${{ needs.version.outputs.version_main }}.${{ needs.version.outputs.version_dev }}