-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.3 KB
/
test.yml
File metadata and controls
50 lines (47 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: test-docker-image
on:
pull_request:
branches:
- main
env:
IMAGE: zappi/vllm-openai
VERSION: 0.10.2
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Free additional disk space
run: |
df -h
echo "Removing dotnet..."
sudo rm -rf /usr/share/dotnet
echo "Removing haskell..."
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/.ghcup
echo "Removing tool cache..."
sudo rm -rf /opt/hostedtoolcache
df -h
- name: Checkout
uses: actions/checkout@v5
- name: Prepare image metadata
id: metadata
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE }}
tags: |
type=raw,value=${{ env.VERSION }},prefix=v
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Test building of image
uses: docker/build-push-action@v6
with:
cache-from: type=gha
cache-to: type=gha,mode=max
context: .
file: Dockerfile
labels: ${{ steps.metadata.outputs.labels }}
platforms: linux/amd64
push: false
tags: ${{ steps.metadata.outputs.tags }}