Skip to content

Commit

Permalink
Use juju machines to verify binary version
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRichardson committed Oct 13, 2020
1 parent e9e27cb commit 662619d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ jobs:
shell: bash
run: |
set -euxo pipefail
CURRENT=$(juju show-controller --format=json | jq -r '.test | .details | .["agent-version"]')
CURRENT=$(juju machines -m controller --format=json | jq -r '.machines | .["0"] | .["juju-status"] | .version')
juju upgrade-controller --build-agent
attempt=0
while true; do
UPDATED=$(juju show-controller --format=json | jq -r '.test | .details | .["agent-version"]')
UPDATED=$(juju machines -m controller --format=json | jq -r '.machines | .["0"] | .["juju-status"] | .version')
if [ "$CURRENT" != "$UPDATED" ]; then
break
fi
Expand Down Expand Up @@ -222,13 +222,13 @@ jobs:
shell: bash
run: |
set -euxo pipefail
CURRENT=$(juju show-controller --format=json | jq -r '.test | .details | .["agent-version"]')
CURRENT=$(juju machines -m controller --format=json | jq -r '.machines | .["0"] | .["juju-status"] | .version')
juju upgrade-controller --build-agent
attempt=0
while true; do
UPDATED=$(juju show-controller --format=json | jq -r '.test | .details | .["agent-version"]')
UPDATED=$(juju machines -m controller --format=json | jq -r '.machines | .["0"] | .["juju-status"] | .version')
if [ "$CURRENT" != "$UPDATED" ]; then
break
fi
Expand Down

0 comments on commit 662619d

Please sign in to comment.