Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

fix: download git models before publishing image #232

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Docker Image
on:
schedule:
# Once weekly on fridays at noon
- cron: '00 12 * * 5'
- cron: "00 12 * * 5"
workflow_dispatch:

jobs:
Expand All @@ -20,9 +20,9 @@ jobs:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up QEMU for cross-platform builds
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
- name: Compute version number
id: version-string
run: |
Expand Down Expand Up @@ -67,6 +67,10 @@ jobs:
echo "LATEST_COMMIT_SHA=$(curl -LSsk 'https://api.github.com/repos/stacklok/codegate-ui/commits?per_page=1' -H 'Authorization: Bearer ${{ secrets.GH_CI_TOKEN }}' | jq -r '.[0].sha')" >> $GITHUB_ENV
- name: Rename to accomodate to image
run: mv ./backup_weaviate ./weaviate_backup
- name: Download git lfs dependencies
run: |
git lfs install
git lfs pull
- name: Build image
id: image-build
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v5
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ FROM python:3.12-slim AS runtime
RUN apt-get update && apt-get install -y --no-install-recommends \
libgomp1 \
nginx \
vim \
&& rm -rf /var/lib/apt/lists/*

# Create a non-root user
Expand Down
Loading