File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,21 @@ jobs:
43
43
44
44
- name : " Run the built image"
45
45
run : |
46
- container_id=$(
47
- docker run \
48
- --rm \
49
- --net host \
50
- -d \
51
- -e ELECTRIC_USAGE_REPORTING=false \
52
- -e ELECTRIC_INSECURE=true \
53
- -e DATABASE_URL='postgresql://postgres:password@localhost:54321?sslmode=disable' \
54
- -p 3000:3000 \
55
- ghcr.io/electric-sql/electric/electric:smoketest
56
- )
57
-
58
- docker inspect --format '{{ .State.Health.Status }}' ${container_id}
46
+ docker run \
47
+ --rm \
48
+ --net host \
49
+ --name electric-smoketest \
50
+ -e ELECTRIC_USAGE_REPORTING=false \
51
+ -e ELECTRIC_INSECURE=true \
52
+ -e DATABASE_URL='postgresql://postgres:password@localhost:54321?sslmode=disable' \
53
+ -d \
54
+ ghcr.io/electric-sql/electric/electric:smoketest
55
+
56
+ - name : Wait for the container to reach healthy status
57
+ uses : stringbean/docker-healthcheck-action@v3
58
+ with :
59
+ container : electric-smoketest
60
+ require-status : running
61
+ require-healthy : true
62
+ wait-time : 20
59
63
You can’t perform that action at this time.
0 commit comments