forked from llm-d/llm-d-async
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 990 Bytes
/
Copy pathci-build-images.yaml
File metadata and controls
39 lines (35 loc) · 990 Bytes
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
name: Build and Push Container Images
on:
workflow_call:
inputs:
image-name:
required: true
type: string
tag:
required: true
type: string
prerelease:
required: true
type: string
jobs:
docker-build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout source
uses: actions/checkout@v7
- name: Build and push Async Processor image
uses: ./.github/actions/docker-build-and-push
with:
docker-file: Dockerfile
tag: ${{ inputs.tag }}
image-name: ${{ inputs.image-name }}
registry: ghcr.io/llm-d
github-token: ${{ github.token }}
prerelease: ${{ inputs.prerelease }}
- name: Run Trivy scan on Async Processor image
uses: ./.github/actions/trivy-scan
with:
image: ghcr.io/llm-d/${{ inputs.image-name }}:${{ inputs.tag }}