Skip to content

Commit 6ab58a3

Browse files
committed
Add initial workflow
1 parent 05ac2cd commit 6ab58a3

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/test.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: test-docker-image
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
env:
9+
IMAGE: zappi/vllm-openai
10+
11+
jobs:
12+
build-amd64:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Prepare image metadata
18+
id: metadata
19+
uses: docker/metadata-action@v5
20+
with:
21+
images: ${{ env.IMAGE }}
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v3
26+
- name: Test building of image
27+
uses: docker/build-push-action@v6
28+
with:
29+
cache-from: type=gha
30+
cache-to: type=gha,mode=max
31+
context: .
32+
file: Dockerfile.amd64
33+
labels: ${{ steps.metadata.outputs.labels }}
34+
platforms: linux/amd64
35+
push: false
36+
tags: ${{ steps.metadata.outputs.tags }}
37+
build-arm64:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v4
42+
- name: Prepare image metadata
43+
id: metadata
44+
uses: docker/metadata-action@v5
45+
with:
46+
images: ${{ env.IMAGE }}
47+
- name: Set up QEMU
48+
uses: docker/setup-qemu-action@v3
49+
- name: Set up Docker Buildx
50+
uses: docker/setup-buildx-action@v3
51+
- name: Test building of image
52+
uses: docker/build-push-action@v6
53+
with:
54+
cache-from: type=gha
55+
cache-to: type=gha,mode=max
56+
context: .
57+
file: Dockerfile.arm64
58+
labels: ${{ steps.metadata.outputs.labels }}
59+
platforms: linux/arm64
60+
push: false
61+
tags: ${{ steps.metadata.outputs.tags }}

0 commit comments

Comments
 (0)