This repository has been archived by the owner on May 3, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflows: Remove non-shared packages before upload
Workflows: Fix WEB_ROOT_PATH env name
- Loading branch information
Showing
7 changed files
with
49 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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] | ||
|
Oops, something went wrong.