Skip to content

update workflow file #9

update workflow file

update workflow file #9

Workflow file for this run

name: Initial Setup
on:
release:
types: [published]
push:
branches:
- main
workflow_dispatch:
env:
LONDON_HOST: ${{ secrets.LONDON_HOST }}
FRANKFURT_HOST: ${{ secrets.FRANKFURT_HOST }}
SEATTLE_HOST: ${{ secrets.SEATTLE_HOST }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
USERNAME: ${{ secrets.USERNAME }}
jobs:
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 }}
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
script: |
chmod +x ./shared/preparation.sh
./shared/preparation.sh
timeout: 3000s
install-k3s-london:
needs: prepare-london-host
name: Install K3s on London Host
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install K3s on London Host
uses: appleboy/[email protected]
with:
host: ${{ env.LONDON_HOST }}
username: ${{ env.USERNAME }}
key: ${{ env.SECRET_KEY }}
port: 22
script: |
chmod +x ./hosts/master-london.sh
./hosts/master-london.sh
timeout: 3000s
install-k3s-frankfurt:
needs: install-k3s-london
name: Install K3s on Frankfurt Host
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install K3s on Frankfurt Host
uses: appleboy/[email protected]
with:
host: ${{ env.FRANKFURT_HOST }}
username: ${{ env.USERNAME }}
key: ${{ env.SECRET_KEY }}
port: 22
script: |
chmod +x ./hosts/worker-frankfurt.sh
./hosts/worker-frankfurt.sh
timeout: 3000s
install-k3s-seattle:
needs: install-k3s-london
name: Install K3s on Seattle Host
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install K3s on Seattle Host
uses: appleboy/[email protected]
with:
host: ${{ env.SEATTLE_HOST }}
username: ${{ env.USERNAME }}
key: ${{ env.SECRET_KEY }}
port: 22
script: |
chmod +x ./hosts/worker-seattle.sh
./hosts/worker-seattle.sh
timeout: 3000s