Skip to content

Commit 60d208d

Browse files
authored
Merge pull request #4785 from manyfold3d/docker-smoke-test
Prepare for docker smoke testing
2 parents bafd4ea + 341bcb5 commit 60d208d

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
type=schedule,pattern=nightly
4646
type=semver,pattern={{version}}
4747
type=ref,event=pr
48+
type=sha,format=long
4849
type=edge
4950
5051
- name: Depot setup
@@ -65,7 +66,7 @@ jobs:
6566
context: .
6667
file: ./docker/${{ matrix.variant }}.dockerfile
6768
platforms: linux/amd64,linux/arm64
68-
push: ${{ github.event_name != 'pull_request' }}
69+
push: true
6970
tags: ${{ steps.docker_meta.outputs.tags }}
7071
labels: ${{ steps.docker_meta.outputs.labels }}
7172
build-args: |

.github/workflows/smoke_test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Image smoke test
2+
3+
on:
4+
workflow_run:
5+
workflows: [Docker]
6+
types:
7+
- completed
8+
jobs:
9+
smoke-test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Smoke test
13+
run: curl http://localhost:3214/health --fail-with-body
14+
services:
15+
manyfold:
16+
image: ghcr.io/${{ github.repository_owner }}/manyfold-solo:sha-${{ github.sha }}
17+
env:
18+
SECRET_KEY_BASE: abc123
19+
options: >-
20+
--health-cmd "curl http://localhost:3214/health --fail-with-body"
21+
--health-interval 10s
22+
--health-timeout 5s
23+
--health-retries 5
24+
ports:
25+
- 3214:3214

0 commit comments

Comments
 (0)