Skip to content

Commit

Permalink
Fix: CI had no timeout on until ssh-keyscan
Browse files Browse the repository at this point in the history
This could cause the droplets to run forever.
  • Loading branch information
hoh committed Oct 6, 2023
1 parent 4dbef7d commit 9dc7607
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-on-droplet-debian-11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
name: "Run in DigitalOcean Droplet with Debian 11"
runs-on: ubuntu-latest
concurrency: droplet-aleph-vm-debian-11
timeout-minutes: 10

steps:
- name: Checkout repository
Expand Down Expand Up @@ -49,6 +50,7 @@ jobs:
run: |
export DROPLET_IPV4="$(doctl compute droplet get aleph-vm-ci-debian-11 --output json | ./.github/scripts/extract_droplet_ipv4.py)"
until ssh-keyscan -H ${DROPLET_IPV4}; do sleep 1; done
timeout-minutes: 3

- name: Install Aleph-VM on the Droplet
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-on-droplet-debian-12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
name: "Run in DigitalOcean Droplet with Debian 12"
runs-on: ubuntu-latest
concurrency: droplet-aleph-vm-debian-12
timeout-minutes: 10

steps:
- name: Checkout repository
Expand Down Expand Up @@ -49,6 +50,7 @@ jobs:
run: |
export DROPLET_IPV4="$(doctl compute droplet get aleph-vm-ci-debian-12 --output json | ./.github/scripts/extract_droplet_ipv4.py)"
until ssh-keyscan -H ${DROPLET_IPV4}; do sleep 1; done
timeout-minutes: 3

- name: Install Aleph-VM on the Droplet
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-on-droplet-ubuntu-22.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
name: "Run in DigitalOcean Droplet with Ubuntu 22.04"
runs-on: ubuntu-latest
concurrency: droplet-aleph-vm-ubuntu-22-04
timeout-minutes: 10

steps:
- name: Checkout repository
Expand Down Expand Up @@ -49,6 +50,7 @@ jobs:
run: |
export DROPLET_IPV4="$(doctl compute droplet get aleph-vm-ci-ubuntu-22-04 --output json | ./.github/scripts/extract_droplet_ipv4.py)"
until ssh-keyscan -H ${DROPLET_IPV4}; do sleep 1; done
timeout-minutes: 3

- name: Install Aleph-VM on the Droplet
run: |
Expand Down

0 comments on commit 9dc7607

Please sign in to comment.