Skip to content

Commit 9dc2fca

Browse files
committed
craft-pilot-common kütüphanesi eklendi.
1 parent f6b604e commit 9dc2fca

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/llm-service-ci-cd.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,24 @@ jobs:
7474
username: ${{ secrets.DOCKERHUB_USERNAME }}
7575
password: ${{ secrets.DOCKERHUB_TOKEN }}
7676

77-
- name: Copy llm-service files for context
77+
- name: Prepare build context
7878
run: |
79-
mkdir -p /tmp/build-context
80-
cp -r ../craft-pilot-commons /tmp/build-context/
81-
cp -r . /tmp/build-context/llm-service
82-
working-directory: ./llm-service
79+
# Create a temporary directory for build context
80+
mkdir -p /tmp/docker-build-context
81+
# Copy craft-pilot-commons to build context
82+
cp -r craft-pilot-commons /tmp/docker-build-context/
83+
# Copy llm-service to build context
84+
cp -r llm-service /tmp/docker-build-context/
8385
8486
- name: Build and Push Docker image
8587
uses: docker/build-push-action@v4
8688
with:
87-
context: ./llm-service
89+
context: /tmp/docker-build-context/llm-service
8890
platforms: linux/arm64
8991
push: true
9092
tags: ${{ secrets.DOCKERHUB_USERNAME }}/llm-service:latest-arm64
93+
build-args: |
94+
COMMONS_DIR=../craft-pilot-commons
9195
9296
- name: Deploy to VPS
9397
uses: appleboy/ssh-action@master

0 commit comments

Comments
 (0)