Skip to content

Commit 9f11ad9

Browse files
committed
Run jq in docker
1 parent 96e046d commit 9f11ad9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ tasks:
9696
fi
9797
TOKEN=$(curl -s -X POST "http://localhost:${NGINX_PORT}/api/v1/auth/login" \
9898
-H "Content-Type: application/json" \
99-
-d '{"username":"global-admin@os2iot.dk","password":"hunter2"}' | jq -r '.accessToken')
99+
-d '{"username":"global-admin@os2iot.dk","password":"hunter2"}' | docker run -i --rm ghcr.io/jqlang/jq -r '.accessToken')
100100
if [ "$TOKEN" = "null" ] || [ -z "$TOKEN" ]; then
101101
echo "✗ Failed to login - ensure services are running"
102102
exit 1
@@ -191,7 +191,7 @@ tasks:
191191
fi
192192
TOKEN=$(curl -s -X POST "http://localhost:${NGINX_PORT}/api/v1/auth/login" \
193193
-H "Content-Type: application/json" \
194-
-d '{"username":"global-admin@os2iot.dk","password":"hunter2"}' | jq -r '.accessToken')
194+
-d '{"username":"global-admin@os2iot.dk","password":"hunter2"}' | docker run -i --rm ghcr.io/jqlang/jq -r '.accessToken')
195195
if [ "$TOKEN" = "null" ] || [ -z "$TOKEN" ]; then
196196
echo "✗ Failed to login - ensure services are running"
197197
exit 1

0 commit comments

Comments
 (0)