Skip to content

Commit

Permalink
[bfops/cli-replace-token]: fix smoketests?
Browse files Browse the repository at this point in the history
  • Loading branch information
bfops committed Oct 21, 2024
1 parent 4eb8fef commit dcd0e77
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ jobs:
run: docker compose up -d
- name: Set login token
run: |
spacetime version
TOKEN="$(curl -X POST http://localhost:3000/identity | jq -r '.token')"
echo 'login_token = "$TOKEN"' | tee ~/.spacetime/config.toml.new
cat ~/.spacetime/config.toml >> ~/.spacetime/config.toml.new
mv ~/.spacetime/config.toml.new ~/.spacetime/config.toml
mkdir ~/.spacetime
# The config file is not created yet, so we can safely replace it
echo 'login_token = "$TOKEN"' > ~/.spacetime/config.toml
- name: Run smoketests
run: python -m smoketests --docker
- name: Stop containers
Expand Down

0 comments on commit dcd0e77

Please sign in to comment.