Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
tai
Browse files Browse the repository at this point in the history
  • Loading branch information
mgilangjanuar committed Jan 29, 2022
1 parent 621808e commit 9c6ef5f
Showing 1 changed file with 40 additions and 24 deletions.
64 changes: 40 additions & 24 deletions .github/workflows/build-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ jobs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2

- run: mv build-root/build-root.tar.gz . && mv build-server/build-server.tar.gz . && mv build-web/build-web.tar.gz .

# Upload to SG_1
- name: Upload build-root.tar.gz to sg_1
uses: appleboy/scp-action@master
with:
source: build-root/build-root.tar.gz
source: build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_1 }}
username: ${{ env.DEV_USER }}
Expand All @@ -80,15 +82,15 @@ jobs:
- name: Upload build-server.tar.gz to sg_1
uses: appleboy/scp-action@master
with:
source: build-server/build-server.tar.gz
source: build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_1 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to sg_1
uses: appleboy/scp-action@master
with:
source: build-web/build-web.tar.gz
source: build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_1 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -144,11 +146,13 @@ jobs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2

- run: mv build-root/build-root.tar.gz . && mv build-server/build-server.tar.gz . && mv build-web/build-web.tar.gz .

# Upload to SG_2
- name: Upload build-root.tar.gz to sg_2
uses: appleboy/scp-action@master
with:
source: build-root/build-root.tar.gz
source: build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_2 }}
username: ${{ env.DEV_USER }}
Expand All @@ -157,15 +161,15 @@ jobs:
- name: Upload build-server.tar.gz to sg_2
uses: appleboy/scp-action@master
with:
source: build-server/build-server.tar.gz
source: build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_2 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to sg_2
uses: appleboy/scp-action@master
with:
source: build-web/build-web.tar.gz
source: build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_2 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -221,11 +225,13 @@ jobs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2

- run: mv build-root/build-root.tar.gz . && mv build-server/build-server.tar.gz . && mv build-web/build-web.tar.gz .

# Upload to SG_3
- name: Upload build-root.tar.gz to sg_3
uses: appleboy/scp-action@master
with:
source: build-root/build-root.tar.gz
source: build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_3 }}
username: ${{ env.DEV_USER }}
Expand All @@ -234,15 +240,15 @@ jobs:
- name: Upload build-server.tar.gz to sg_3
uses: appleboy/scp-action@master
with:
source: build-server/build-server.tar.gz
source: build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_3 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to sg_3
uses: appleboy/scp-action@master
with:
source: build-web/build-web.tar.gz
source: build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_3 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -298,11 +304,13 @@ jobs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2

- run: mv build-root/build-root.tar.gz . && mv build-server/build-server.tar.gz . && mv build-web/build-web.tar.gz .

# Upload to GE_1
- name: Upload build-root.tar.gz to ge_1
uses: appleboy/scp-action@master
with:
source: build-root/build-root.tar.gz
source: build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_1 }}
username: ${{ env.DEV_USER }}
Expand All @@ -311,15 +319,15 @@ jobs:
- name: Upload build-server.tar.gz to ge_1
uses: appleboy/scp-action@master
with:
source: build-server/build-server.tar.gz
source: build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_1 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to ge_1
uses: appleboy/scp-action@master
with:
source: build-web/build-web.tar.gz
source: build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_1 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -375,11 +383,13 @@ jobs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2

- run: mv build-root/build-root.tar.gz . && mv build-server/build-server.tar.gz . && mv build-web/build-web.tar.gz .

# Upload to GE_2
- name: Upload build-root.tar.gz to ge_2
uses: appleboy/scp-action@master
with:
source: build-root/build-root.tar.gz
source: build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_2 }}
username: ${{ env.DEV_USER }}
Expand All @@ -388,15 +398,15 @@ jobs:
- name: Upload build-server.tar.gz to ge_2
uses: appleboy/scp-action@master
with:
source: build-server/build-server.tar.gz
source: build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_2 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to ge_2
uses: appleboy/scp-action@master
with:
source: build-web/build-web.tar.gz
source: build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_2 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -452,11 +462,13 @@ jobs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2

- run: mv build-root/build-root.tar.gz . && mv build-server/build-server.tar.gz . && mv build-web/build-web.tar.gz .

# Upload to GE_DB
- name: Upload build-root.tar.gz to ge_db
uses: appleboy/scp-action@master
with:
source: build-root/build-root.tar.gz
source: build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_DB }}
username: ${{ env.DEV_USER }}
Expand All @@ -465,15 +477,15 @@ jobs:
- name: Upload build-server.tar.gz to ge_db
uses: appleboy/scp-action@master
with:
source: build-server/build-server.tar.gz
source: build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_DB }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to ge_db
uses: appleboy/scp-action@master
with:
source: build-web/build-web.tar.gz
source: build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_DB }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -529,11 +541,13 @@ jobs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2

- run: mv build-root/build-root.tar.gz . && mv build-server/build-server.tar.gz . && mv build-web/build-web.tar.gz .

# Upload to US_DB
- name: Upload build-root.tar.gz to us_db
uses: appleboy/scp-action@master
with:
source: build-root/build-root.tar.gz
source: build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_DB }}
username: ${{ env.DEV_USER }}
Expand All @@ -542,15 +556,15 @@ jobs:
- name: Upload build-server.tar.gz to us_db
uses: appleboy/scp-action@master
with:
source: build-server/build-server.tar.gz
source: build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_DB }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to us_db
uses: appleboy/scp-action@master
with:
source: build-web/build-web.tar.gz
source: build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_DB }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -606,11 +620,13 @@ jobs:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2

- run: mv build-root/build-root.tar.gz . && mv build-server/build-server.tar.gz . && mv build-web/build-web.tar.gz .

# Upload to US_1
- name: Upload build-root.tar.gz to us_1
uses: appleboy/scp-action@master
with:
source: build-root/build-root.tar.gz
source: build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_1 }}
username: ${{ env.DEV_USER }}
Expand All @@ -619,15 +635,15 @@ jobs:
- name: Upload build-server.tar.gz to us_1
uses: appleboy/scp-action@master
with:
source: build-server/build-server.tar.gz
source: build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_1 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to us_1
uses: appleboy/scp-action@master
with:
source: build-web/build-web.tar.gz
source: build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_1 }}
username: ${{ env.DEV_USER }}
Expand Down

0 comments on commit 9c6ef5f

Please sign in to comment.