Skip to content

Commit

Permalink
feat: Release improvments (#26)
Browse files Browse the repository at this point in the history
- Version bump to 0.4.14
  • Loading branch information
tazarov authored Oct 11, 2023
1 parent 3e29582 commit 62dff40
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
chart:
- charts/chromadb-chart/*
8 changes: 5 additions & 3 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ name: Build Images
on:
push:
branches:
- main
- release
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: "ghcr.io/amikos-tech/chromadb-chart/chroma"
LATEST_VERSION: "0.4.13"
LATEST_VERSION: "0.4.14"

jobs:
build-images:
strategy:
matrix:
chroma-version: [ 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13 ]
chroma-version: [ 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13, 0.4.14 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
name: Dev Image Build and Integration test

on:
push:
pull_request_target:
branches:
- develop
- main
paths:
- charts/**
- image/**
- tests/**
pull_request:
branches:
- main
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: "ghcr.io/amikos-tech/chromadb-chart/chroma"
LATEST_VERSION: "0.4.13"
LATEST_VERSION: "0.4.14"
jobs:
build-images:
strategy:
matrix:
chroma-version: [ 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13 ]
chroma-version: [ 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13, 0.4.14 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Pull Request Labeler"
on:
pull_request_target:
branches:
- main

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
37 changes: 37 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Lint on PR
on:
pull_request:
branches:
- main
paths:
- charts/**
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: "ghcr.io/amikos-tech/chromadb-chart/chroma"

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- name: Lint chart
id: helm lint
uses: helm/[email protected]
with:
command: lint
chart_path: charts/chromadb-chart
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Release Charts
on:
push:
branches:
- main
- release
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: "ghcr.io/amikos-tech/chromadb-chart/chroma"
Expand Down
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# About Release

1. Lint on PR to main (this needs to be auto approved)
2. Run integration tests on approve of PR to main
3. Merge PR to main
4.
2 changes: 1 addition & 1 deletion charts/chromadb-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ startupProbe:
initialDelaySeconds: 10

chromadb:
apiVersion: "0.4.13"
apiVersion: "0.4.14"
allowReset: false
isPersistent: true
persistDirectory: /index_data
Expand Down
2 changes: 1 addition & 1 deletion image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG CHROMA_VERSION=0.4.13
ARG CHROMA_VERSION=0.4.14
FROM ghcr.io/chroma-core/chroma:${CHROMA_VERSION} as base

COPY ./image/docker_entrypoint.sh /docker_entrypoint.sh
Expand Down
11 changes: 11 additions & 0 deletions test-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# test-pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: test-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi

0 comments on commit 62dff40

Please sign in to comment.