Skip to content

Commit

Permalink
update workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
zmzlois committed Mar 17, 2024
1 parent ff7c1d8 commit 97c616a
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,49 @@ env:
USERNAME: ${{ secrets.USERNAME }}

jobs:
prepare-all-host:
prepare-london-host:
name: Prepare London Host
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout all directory
uses: appleboy/[email protected]
with:
host: ${{ env.LONDON_HOST }}, ${{ env.FRANKFURT_HOST }}, ${{ env.SEATTLE_HOST }}
host: ${{ env.LONDON_HOST }}
username: ${{ env.USERNAME }}
key: ${{ env.SECRET_KEY }}
port: 22
script: |
chmod +x ./shared/preparation.sh
./shared/preparation.sh
timeout: 3000s

prepare-seattle-host:
name: Prepare Seattle Host
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout all directory
uses: appleboy/[email protected]
with:
host: ${{ env.SEATTLE_HOST }}
username: ${{ env.USERNAME }}
key: ${{ env.SECRET_KEY }}
port: 22
script: |
chmod +x ./shared/preparation.sh
./shared/preparation.sh
timeout: 3000s

prepare-frankfurt-host:
name: Prepare Frankfurt Host
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout all directory
uses: appleboy/[email protected]
with:
host: ${{ env.FRANKFURT_HOST }}
username: ${{ env.USERNAME }}
key: ${{ env.SECRET_KEY }}
port: 22
Expand All @@ -34,7 +68,7 @@ jobs:
timeout: 3000s

install-k3s-london:
needs: prepare-all-host
needs: prepare-london-host
name: Install K3s on London Host
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 97c616a

Please sign in to comment.