Skip to content

Commit 50107ce

Browse files
committed
Add: container-vllm-openai.yml republish workflow
1 parent 47b4886 commit 50107ce

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Republish vllm-openai image
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# rebuild image every sunday
7+
- cron: "0 0 * * 0"
8+
9+
#permissions:
10+
# contents: read
11+
# packages: write
12+
# id-token: write
13+
# pull-requests: write
14+
15+
jobs:
16+
republish-vllm-openai:
17+
name: Republish vllm-openai image
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Login to Docker Hub
22+
uses: docker/login-action@v3
23+
with:
24+
username: ${{ vars.DOCKERHUB_USERNAME }}
25+
password: ${{ secrets.DOCKERHUB_TOKEN }}
26+
27+
- name: Login to Greenbone Registry
28+
uses: docker/login-action@v3
29+
with:
30+
registry: ${{ vars.GREENBONE_REGISTRY }}
31+
username: ${{ secrets.GREENBONE_REGISTRY_USER }}
32+
password: ${{ secrets.GREENBONE_REGISTRY_TOKEN }}
33+
34+
- name: Set up QEMU
35+
uses: docker/setup-qemu-action@v3
36+
37+
- name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v3
39+
40+
- name: Push image to GHCR and Harbor
41+
run: |
42+
docker buildx imagetools create \
43+
--tag greenbone/vllm-openai:latest \
44+
--tag ${{ vars.GREENBONE_REGISTRY }}/openvas-ai/vllm-openai:latest \
45+
vllm/vllm-openai:latest

0 commit comments

Comments
 (0)