fix(ci): Correctly set signing for pushing container images (#161)

This commit is contained in:
Aaron Pham
2023-07-31 03:43:07 -04:00
committed by GitHub
parent ef94c6b98a
commit fec68d732b
2 changed files with 11 additions and 4 deletions

View File

@@ -20,6 +20,11 @@ on:
- "main"
tags:
- "v*"
paths:
- ".github/workflows/build.yaml"
- "src/openllm/bundle/oci/Dockerfile"
- "src/openllm/**"
- "src/openllm_client/**"
pull_request:
branches:
- "main"
@@ -166,6 +171,8 @@ jobs:
cache-to: type=s3,region=${{ env.AWS_REGION }},bucket=openllm-cache,name=y5w8i4y6,mode=max,compression=zstd,ignore-error=true
- name: Sign the released image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.meta.build-and-push.outputs.digest }}
- name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph
uses: aquasecurity/trivy-action@master

View File

@@ -1,10 +1,10 @@
{%- if versiondata["version"] == "main" -%}
## Changes for the Upcoming Release
:::{warning}
These changes reflect the current [development progress](https://github.com/bentoml/openllm/tree/main) and have **not** been part of a official PyPI release yet.
To try out the latest change, one can do: `pip install -U git+https://github.com/bentoml/openllm.git@main`
:::
> **Warning**: These changes reflect the current [development progress](https://github.com/bentoml/openllm/tree/main)
> and have **not** been part of a official PyPI release yet.
> To try out the latest change, one can do: `pip install -U git+https://github.com/bentoml/openllm.git@main`
{% else -%}
## [{{ versiondata["version"] }}](https://github.com/bentoml/openllm/tree/v{{ versiondata["version"] }})
{%- endif %}