Skip to content

Commit

Permalink
retry login
Browse files Browse the repository at this point in the history
  • Loading branch information
petermakowski committed Mar 13, 2024
1 parent b9642dd commit 819f73d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/sitespeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ jobs:
run: sudo maas createadmin --username=admin --password=test --email=fake@example.org
- name: Login MAAS admin
run: |
export API_KEY=`sudo maas apikey --username=admin`
maas login admin http://localhost:5240/MAAS $API_KEY
for i in {1..5}; do
export API_KEY=`sudo maas apikey --username=admin`
maas login admin http://localhost:5240/MAAS $API_KEY && break || sleep 10
done
- name: Wait for MAAS boot resources
shell: bash
run: while [ $(maas admin boot-resources is-importing | cat) == "true" ]; do sleep 10; done; echo "syncing finished"
Expand Down

0 comments on commit 819f73d

Please sign in to comment.