Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Commit

Permalink
Workflows: Remove non-shared packages before upload
Browse files Browse the repository at this point in the history
Workflows: Fix WEB_ROOT_PATH env name
  • Loading branch information
SuLingGG committed Nov 18, 2021
1 parent a6f2d2a commit 2e978e2
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 91 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/bcm27xx-bcm2708.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ env:
SOURCE_URL: https://github.com/immortalwrt/immortalwrt
SOURCE_BRANCH: openwrt-18.06-k5.4
DIY_SH: scripts/custom.sh
WEBROOT: /data/dnmp/www/openwrt.cc
TOOLCHAIN_TAG: toolchain
CLASH_BINARY_PLATFORM: armv6
TOOLCHAIN_RELEASE_UPLOAD: true
FIRMWARE_RELEASE_UPLOAD: true
WEB_ROOT_PATH: /data/dnmp/www/openwrt.cc
TZ: Asia/Shanghai

jobs:
Expand Down Expand Up @@ -376,13 +376,17 @@ jobs:
cd $OPENWRT_ROOT_PATH
unzip $DEVICE_TARGET-$DEVICE_SUBTARGET.zip
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To HostHatch Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.HOSTHATCH_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.HOSTHATCH_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -394,15 +398,12 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Deploy Files To PacificRack Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.PACIFICRACK_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.PACIFICRACK_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -414,13 +415,6 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To Release
uses: ncipollo/[email protected]
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/bcm27xx-bcm2709.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ env:
SOURCE_URL: https://github.com/immortalwrt/immortalwrt
SOURCE_BRANCH: openwrt-18.06-k5.4
DIY_SH: scripts/custom.sh
WEBROOT: /data/dnmp/www/openwrt.cc
TOOLCHAIN_TAG: toolchain
CLASH_BINARY_PLATFORM: armv7
TOOLCHAIN_RELEASE_UPLOAD: true
FIRMWARE_RELEASE_UPLOAD: true
WEB_ROOT_PATH: /data/dnmp/www/openwrt.cc
TZ: Asia/Shanghai

jobs:
Expand Down Expand Up @@ -376,13 +376,17 @@ jobs:
cd $OPENWRT_ROOT_PATH
unzip $DEVICE_TARGET-$DEVICE_SUBTARGET.zip
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To HostHatch Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.HOSTHATCH_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.HOSTHATCH_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -394,15 +398,12 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Deploy Files To PacificRack Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.PACIFICRACK_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.PACIFICRACK_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -414,13 +415,6 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To Release
uses: ncipollo/[email protected]
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/bcm27xx-bcm2710.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ env:
SOURCE_URL: https://github.com/immortalwrt/immortalwrt
SOURCE_BRANCH: openwrt-18.06-k5.4
DIY_SH: scripts/custom.sh
WEBROOT: /data/dnmp/www/openwrt.cc
TOOLCHAIN_TAG: toolchain
CLASH_BINARY_PLATFORM: armv8
TOOLCHAIN_RELEASE_UPLOAD: true
FIRMWARE_RELEASE_UPLOAD: true
WEB_ROOT_PATH: /data/dnmp/www/openwrt.cc
TZ: Asia/Shanghai

jobs:
Expand Down Expand Up @@ -376,13 +376,17 @@ jobs:
cd $OPENWRT_ROOT_PATH
unzip $DEVICE_TARGET-$DEVICE_SUBTARGET.zip
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To HostHatch Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.HOSTHATCH_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.HOSTHATCH_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -394,15 +398,12 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Deploy Files To PacificRack Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.PACIFICRACK_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.PACIFICRACK_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -414,13 +415,6 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To Release
uses: ncipollo/[email protected]
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/bcm27xx-bcm2711.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ env:
SOURCE_URL: https://github.com/immortalwrt/immortalwrt
SOURCE_BRANCH: openwrt-18.06-k5.4
DIY_SH: scripts/custom.sh
WEBROOT: /data/dnmp/www/openwrt.cc
TOOLCHAIN_TAG: toolchain
CLASH_BINARY_PLATFORM: armv8
TOOLCHAIN_RELEASE_UPLOAD: true
FIRMWARE_RELEASE_UPLOAD: true
WEB_ROOT_PATH: /data/dnmp/www/openwrt.cc
TZ: Asia/Shanghai

jobs:
Expand Down Expand Up @@ -378,13 +378,17 @@ jobs:
cd $OPENWRT_ROOT_PATH
unzip $DEVICE_TARGET-$DEVICE_SUBTARGET.zip
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To HostHatch Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.HOSTHATCH_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.HOSTHATCH_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -396,15 +400,12 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Deploy Files To PacificRack Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.PACIFICRACK_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.PACIFICRACK_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -416,13 +417,6 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To Release
uses: ncipollo/[email protected]
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/ipq40xx-generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ env:
SOURCE_URL: https://github.com/immortalwrt/immortalwrt
SOURCE_BRANCH: openwrt-18.06-k5.4
DIY_SH: scripts/custom.sh
WEBROOT: /data/dnmp/www/openwrt.cc
TOOLCHAIN_TAG: toolchain
CLASH_BINARY_PLATFORM: armv7
TOOLCHAIN_RELEASE_UPLOAD: true
FIRMWARE_RELEASE_UPLOAD: true
WEB_ROOT_PATH: /data/dnmp/www/openwrt.cc
TZ: Asia/Shanghai

jobs:
Expand Down Expand Up @@ -372,13 +372,17 @@ jobs:
cd $OPENWRT_ROOT_PATH
unzip $DEVICE_TARGET-$DEVICE_SUBTARGET.zip
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To HostHatch Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.HOSTHATCH_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.HOSTHATCH_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -390,15 +394,12 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Deploy Files To PacificRack Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.PACIFICRACK_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.PACIFICRACK_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -410,13 +411,6 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To Release
uses: ncipollo/[email protected]
Expand Down
20 changes: 7 additions & 13 deletions .github/workflows/rockchip-armv8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ env:
SOURCE_URL: https://github.com/immortalwrt/immortalwrt
SOURCE_BRANCH: openwrt-18.06-k5.4
DIY_SH: scripts/custom.sh
WEBROOT: /data/dnmp/www/openwrt.cc
TOOLCHAIN_TAG: toolchain
CLASH_BINARY_PLATFORM: armv8
TOOLCHAIN_RELEASE_UPLOAD: true
FIRMWARE_RELEASE_UPLOAD: true
WEB_ROOT_PATH: /data/dnmp/www/openwrt.cc
TZ: Asia/Shanghai

jobs:
Expand Down Expand Up @@ -375,13 +375,17 @@ jobs:
cd $OPENWRT_ROOT_PATH
unzip $DEVICE_TARGET-$DEVICE_SUBTARGET.zip
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To HostHatch Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.HOSTHATCH_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.HOSTHATCH_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -393,15 +397,12 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Deploy Files To PacificRack Node
env:
HOST: "${{ secrets.REMOTE_USER }}@${{ secrets.PACIFICRACK_IP }}"
SOURCE_TARGETS: "${{ env.OPENWRT_ROOT_PATH }}/bin/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
SOURCE_PACKAGES: "${{ env.OPENWRT_ROOT_PATH }}/bin/packages/${{ env.DEVICE_PLATFORM }}/"
DEST_TARGETS: "${{ env.WEB_ROOT_PATH }}/snapshots/targets/${{ env.DEVICE_TARGET }}/${{ env.DEVICE_SUBTARGET }}/"
DEST_PACKAGES: "${{ env.WEB_ROOT_PATH }}/snapshots/packages/${{ env.DEVICE_PLATFORM }}/"
REMOTE_PRIVATEKEY: "${{ secrets.PACIFICRACK_PRIVATEKEY }}"
if: env.REMOTE_PRIVATEKEY != null
run: |
Expand All @@ -413,13 +414,6 @@ jobs:
bash -c "'mkdir -p $WEB_ROOT_PATH/snapshots/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET \
$WEB_ROOT_PATH/snapshots/packages/$DEVICE_PLATFORM'"
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_TARGETS $HOST:$DEST_TARGETS
rsync -chavP --delete -e 'ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no' $SOURCE_PACKAGES $HOST:$DEST_PACKAGES
- name: Organize Files
run: |
cd $OPENWRT_ROOT_PATH/bin/targets/$DEVICE_TARGET/$DEVICE_SUBTARGET
rm -rf packages
df -hT $PWD
- name: Deploy Files To Release
uses: ncipollo/[email protected]
Expand Down
Loading

0 comments on commit 2e978e2

Please sign in to comment.