Skip to content

Commit fb645d3

Browse files
author
Fabian Grutschus
committed
First check for server start then run build
1 parent 39adb10 commit fb645d3

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/docker.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ jobs:
123123
--rm \
124124
mcr.microsoft.com/mssql/server:2025-latest
125125
126+
- name: Wait for SQLServer to become available
127+
uses: iFaxity/wait-on-action@v1.2.1
128+
with:
129+
resource: tcp:localhost:1433
130+
timeout: 1800000
131+
interval: 5000
132+
log: true
133+
126134
- name: Save SQLServer image
127135
if: steps.docker-image-cache.outputs.cache-hit != 'true'
128136
run: docker image save -o sqlserver.tar mcr.microsoft.com/mssql/server:2025-latest
@@ -145,18 +153,6 @@ jobs:
145153
'--build-arg=MICROSOFT_DOWNLOAD_URL_TOOLS=${{ matrix.version.download_url_mssql }}' \
146154
.
147155
148-
- name: Wait for SQLServer to become available
149-
uses: iFaxity/wait-on-action@v1.2.1
150-
with:
151-
resource: tcp:localhost:1433
152-
timeout: 1800000
153-
interval: 5000
154-
log: true
155-
156-
- uses: GuillaumeFalourd/wait-sleep-action@v1
157-
with:
158-
time: '120'
159-
160156
- name: Test image
161157
run: |
162158
docker run -t --rm --entrypoint='' --network=host \

0 commit comments

Comments
 (0)