forked from phoenix/litellm-mirror
Bumps the github-actions group with 7 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `1` | `4` |
| [docker/build-push-action](https://github.com/docker/build-push-action) | `5` | `6` |
| [docker/metadata-action](https://github.com/docker/metadata-action) | `9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7` | `b53be03109c4ef6f6cc7aa545b84b17a7fe51c1e` |
| [christian-draeger/increment-semantic-version](https://github.com/christian-draeger/increment-semantic-version) | `1.1.0` | `1.2.0` |
| [actions/github-script](https://github.com/actions/github-script) | `6` | `7` |
| [WyriHaximus/github-action-get-previous-tag](https://github.com/wyrihaximus/github-action-get-previous-tag) | `1.3.0` | `1.4.0` |
| [actions/setup-python](https://github.com/actions/setup-python) | `2` | `5` |
Updates `actions/checkout` from 1 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v1...v4)
Updates `docker/build-push-action` from 5 to 6
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)
Updates `docker/metadata-action` from 9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 to b53be03109c4ef6f6cc7aa545b84b17a7fe51c1e
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](9ec57ed1fc...b53be03109
)
Updates `christian-draeger/increment-semantic-version` from 1.1.0 to 1.2.0
- [Release notes](https://github.com/christian-draeger/increment-semantic-version/releases)
- [Commits](https://github.com/christian-draeger/increment-semantic-version/compare/1.1.0...1.2.0)
Updates `actions/github-script` from 6 to 7
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)
Updates `WyriHaximus/github-action-get-previous-tag` from 1.3.0 to 1.4.0
- [Release notes](https://github.com/wyrihaximus/github-action-get-previous-tag/releases)
- [Commits](https://github.com/wyrihaximus/github-action-get-previous-tag/compare/v1.3.0...v1.4.0)
Updates `actions/setup-python` from 2 to 5
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v5)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
- dependency-name: docker/metadata-action
dependency-type: direct:production
dependency-group: github-actions
- dependency-name: christian-draeger/increment-semantic-version
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
- dependency-name: WyriHaximus/github-action-get-previous-tag
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
67 lines
2.6 KiB
YAML
67 lines
2.6 KiB
YAML
# this workflow is triggered by an API call when there is a new PyPI release of LiteLLM
|
|
name: Build, Publish LiteLLM Helm Chart. New Release
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
chartVersion:
|
|
description: "Update the helm chart's version to this"
|
|
|
|
# Defines two custom environment variables for the workflow. Used for the Container registry domain, and a name for the Docker image that this workflow builds.
|
|
env:
|
|
REGISTRY: ghcr.io
|
|
IMAGE_NAME: ${{ github.repository }}
|
|
REPO_OWNER: ${{github.repository_owner}}
|
|
|
|
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
|
|
jobs:
|
|
build-and-push-helm-chart:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to the Container registry
|
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: lowercase github.repository_owner
|
|
run: |
|
|
echo "REPO_OWNER=`echo ${{github.repository_owner}} | tr '[:upper:]' '[:lower:]'`" >>${GITHUB_ENV}
|
|
|
|
- name: Get LiteLLM Latest Tag
|
|
id: current_app_tag
|
|
uses: WyriHaximus/github-action-get-previous-tag@v1.4.0
|
|
|
|
- name: Get last published chart version
|
|
id: current_version
|
|
shell: bash
|
|
run: helm show chart oci://${{ env.REGISTRY }}/${{ env.REPO_OWNER }}/litellm-helm | grep '^version:' | awk 'BEGIN{FS=":"}{print "current-version="$2}' | tr -d " " | tee -a $GITHUB_OUTPUT
|
|
env:
|
|
HELM_EXPERIMENTAL_OCI: '1'
|
|
|
|
# Automatically update the helm chart version one "patch" level
|
|
- name: Bump release version
|
|
id: bump_version
|
|
uses: christian-draeger/increment-semantic-version@1.2.0
|
|
with:
|
|
current-version: ${{ steps.current_version.outputs.current-version || '0.1.0' }}
|
|
version-fragment: 'bug'
|
|
|
|
- name: Lint helm chart
|
|
run: helm lint deploy/charts/litellm-helm
|
|
|
|
- uses: ./.github/actions/helm-oci-chart-releaser
|
|
with:
|
|
name: litellm-helm
|
|
repository: ${{ env.REPO_OWNER }}
|
|
tag: ${{ github.event.inputs.chartVersion || steps.bump_version.outputs.next-version || '0.1.0' }}
|
|
app_version: ${{ steps.current_app_tag.outputs.tag || 'latest' }}
|
|
path: deploy/charts/litellm-helm
|
|
registry: ${{ env.REGISTRY }}
|
|
registry_username: ${{ github.actor }}
|
|
registry_password: ${{ secrets.GITHUB_TOKEN }}
|
|
update_dependencies: true
|
|
|