9292            type=raw,value=latest 
9393            type=ref,event=tag 
9494
95- name : Build Elasticsearch image 
96-         uses : docker/build-push-action@v6 
97-         with :
98-           context : . 
99-           file : dockerfiles/Dockerfile.ci.es 
100-           platforms : linux/amd64 
101-           push : false 
102-           load : true 
103-           tags : stac-fastapi-es:test 
104-           cache-from : type=gha 
105-           cache-to : type=gha,mode=max 
106- 
107-       - name : Test Elasticsearch image 
108-         run : | 
109-           docker run -d --name stac-es \ 
110-             -e RUN_LOCAL_ES=1 \ 
111-             stac-fastapi-es:test 
112-            
113-           timeout=120 
114-           while [ $timeout -gt 0 ]; do 
115-             if docker inspect stac-es --format='{{.State.Health.Status}}' | grep -q 'healthy'; then 
116-               echo "Container is healthy" 
117-               break 
118-             fi 
119-             if [ $timeout -eq 0 ]; then 
120-               echo "Health check failed" 
121-               docker logs stac-es 
122-               docker stop stac-es 
123-               docker rm stac-es 
124-               exit 1 
125-             fi 
126-             sleep 5 
127-             timeout=$((timeout-5)) 
128-           done 
129-            
130-           docker stop stac-es 
131-           docker rm stac-es 
132- 
13395name : Push Elasticsearch image 
13496        uses : docker/build-push-action@v6 
13597        with :
@@ -151,44 +113,6 @@ jobs:
151113            type=raw,value=latest 
152114            type=ref,event=tag 
153115
154- name : Build OpenSearch image 
155-         uses : docker/build-push-action@v6 
156-         with :
157-           context : . 
158-           file : dockerfiles/Dockerfile.ci.os 
159-           platforms : linux/amd64 
160-           push : false 
161-           load : true 
162-           tags : stac-fastapi-os:test 
163-           cache-from : type=gha 
164-           cache-to : type=gha,mode=max 
165- 
166-       - name : Test OpenSearch image 
167-         run : | 
168-           docker run -d --name stac-os \ 
169-             -e RUN_LOCAL_OS=1 \ 
170-             stac-fastapi-os:test 
171-            
172-           timeout=120 
173-           while [ $timeout -gt 0 ]; do 
174-             if docker inspect stac-os --format='{{.State.Health.Status}}' | grep -q 'healthy'; then 
175-               echo "Container is healthy" 
176-               break 
177-             fi 
178-             if [ $timeout -eq 0 ]; then 
179-               echo "Health check failed" 
180-               docker logs stac-os 
181-               docker stop stac-os 
182-               docker rm stac-os 
183-               exit 1 
184-             fi 
185-             sleep 5 
186-             timeout=$((timeout-5)) 
187-           done 
188-            
189-           docker stop stac-os 
190-           docker rm stac-os 
191- 
192116name : Push OpenSearch image 
193117        uses : docker/build-push-action@v6 
194118        with :
0 commit comments