File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments