Skip to content

Commit

Permalink
[ci] fix bad tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgorana committed Oct 16, 2023
1 parent 9e28881 commit c8604f2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -926,14 +926,13 @@ commands =
pip list
pytest

[testenv:dev.k8s.registry]:
[testenv:dev.k8s.registry]
changedir = {toxinidir}/packages/grid
passenv=HOME,USER
allowlist_externals =
bash
commands =
bash -c 'k3d registry create registry.localhost --port 12345 -v $HOME/.k3d-registry:/var/lib/registry'

bash -c '\
CYAN="\033[1;36m"; \
CLEAR="\033[0m"; \
Expand All @@ -950,11 +949,10 @@ allowlist_externals =
commands =
bash -c 'URL=http://k3d-registry.localhost:12345/v2/_catalog; \
curl -X GET $URL || (echo "ERROR: Add \"127.0.0.1 k3d-registry.localhost\" to /etc/hosts" && exit 1)'

bash -c 'k3d cluster create syft-dev -p "8080:80@loadbalancer" --registry-use k3d-registry.localhost:12345; \
k3d cluster list'

[testenv:dev.k8s.deploy]:
[testenv:dev.k8s.deploy]
changedir = {toxinidir}/packages/grid
passenv=HOME, USER
allowlist_externals =
Expand All @@ -965,7 +963,7 @@ commands =
devspace use namespace syft; \
devspace deploy --var CONTAINER_REGISTRY=k3d-registry.localhost:12345 --config=devspace.yaml'

[testenv:dev.k8s.cleanup]:
[testenv:dev.k8s.cleanup]
changedir = {toxinidir}/packages/grid
allowlist_externals =
bash
Expand Down

0 comments on commit c8604f2

Please sign in to comment.