From e274dd798bbef8f1593c33d1a6ac8ed182ca54a6 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Wed, 1 Mar 2023 21:59:15 +0800 Subject: [PATCH] =?UTF-8?q?[ci]=20-=20=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=AC?= =?UTF-8?q?copy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-push-docker.yml | 12 ++++++++++++ .../main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-push-docker.yml b/.github/workflows/build-push-docker.yml index 91bdde5..3ee42cd 100644 --- a/.github/workflows/build-push-docker.yml +++ b/.github/workflows/build-push-docker.yml @@ -157,6 +157,18 @@ jobs: rm: true strip_components: 2 + - name: copy shell scripts to arm seoul 2 + uses: appleboy/scp-action@master + with: + host: ${{ secrets.SSH_HOST }} + username: root + password: ${{ secrets.SSH_PASSWORD }} + port: ${{ secrets.SSH_PORT }} + source: "./source/src/main/java/io/wdd/source/shell/*" + target: "/data/github-action/shell/" + rm: true + strip_components: 2 + - name: Send Agent Latest Version Info To RabbitMQ.OctopusToServer # You may pin to the exact commit or the version. # uses: eferraris/rabbit-sender@aca1775ecffe3bce07cf6503089008fa20412e9f diff --git a/source/src/main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh b/source/src/main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh index 304175b..3f1b8de 100644 --- a/source/src/main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh +++ b/source/src/main/java/io/wdd/source/shell/lib/wdd-lib-sys.sh @@ -149,7 +149,7 @@ wget https://raw.githubusercontent.com/zeaslity/ProjectOctopus/main/source/src/m echo "y -" | gcloud compute instances delete tokyo-amd64-13 --project=compact-lacing-371804 --zone=asia-northeast1-b +" | gcloud compute instances delete tokyo-amd64-07 --project=compact-lacing-371804 --zone=asia-northeast1-b apt-cache madison openjdk-11-jdk | head -n 1 | awk '{print$3}'