Skip to content

Commit 58e9106

Browse files
committed
wip
1 parent dbe92f2 commit 58e9106

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/docker_image_smoketest.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,21 @@ jobs:
4343

4444
- name: "Run the built image"
4545
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
5963

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy