-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (71 loc) · 2 KB
/
release.yml
File metadata and controls
77 lines (71 loc) · 2 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: release-docker-images
# on:
# push:
# tags:
# - '*'
on:
pull_request:
branches:
- main
env:
IMAGE: zappi/vllm-openai
VERSION: 0.10.2
jobs:
docker-hub-release:
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: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build, tag, and push 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: true
tags: ${{ steps.metadata.outputs.tags }}
# github-release:
# runs-on: ubuntu-latest
# needs: docker-hub-release-manifest
# steps:
# - name: Checkout
# uses: actions/checkout@v5
# - name: Create Release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Version ${{ github.ref }}
# draft: false
# prerelease: false