docker_entrypoint.sh: change owner of PERSIST_DIRECTORY (#21) (#22) #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Images | |
on: | |
push: | |
branches: | |
- main | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: "ghcr.io/amikos-tech/chromadb-chart/chroma" | |
LATEST_VERSION: "0.4.13" | |
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 ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Log in to the Container registry | |
uses: docker/[email protected] | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ${{ env.IMAGE_NAME }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and push release Docker image | |
uses: docker/[email protected] | |
if: ${{ env.LATEST_VERSION == matrix.chroma-version }} | |
with: | |
context: . | |
file: image/Dockerfile | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
build-args: | | |
CHROMA_VERSION=${{ matrix.chroma-version }} | |
tags: "${{ env.IMAGE_NAME }}:${{ matrix.chroma-version }},${{ env.IMAGE_NAME }}:latest" | |
- name: Build and push release Docker image | |
if: ${{ env.LATEST_VERSION != matrix.chroma-version }} | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: image/Dockerfile | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
build-args: | | |
CHROMA_VERSION=${{ matrix.chroma-version }} | |
tags: "${{ env.IMAGE_NAME }}:${{ matrix.chroma-version }}" |