Skip to content

Commit

Permalink
prompt service build fix and github action updated (#68)
Browse files Browse the repository at this point in the history
prompt service build fix and github action updated for `latest` image push

Co-authored-by: Hari John Kuriakose <[email protected]>
  • Loading branch information
jaseemjaskp and hari-kuriakose authored Mar 7, 2024
1 parent 35429b1 commit acf78f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/production-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types:
- created

run-name: "[${{ github.event.release.tag_name }}] Docker Image Build and Push (Development)"
run-name: "[${{ github.event.release.tag_name }}] Docker Image Build and Push (Production)"

jobs:
build-and-push:
Expand All @@ -26,8 +26,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push image
- name: Build and push images
working-directory: ./docker
run: |
VERSION=${{ github.event.release.tag_name }} docker-compose -f docker-compose.build.yaml build --no-cache ${{ matrix.service_name }}
docker tag unstract/${{ matrix.service_name }}:${{ github.event.release.tag_name }} unstract/${{ matrix.service_name }}:latest
docker push unstract/${{ matrix.service_name }}:${{ github.event.release.tag_name }}
docker push unstract/${{ matrix.service_name }}:latest
2 changes: 2 additions & 0 deletions docker/dockerfiles/prompt.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ RUN apt-get update; \
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
adduser -u 5678 --disabled-password --gecos "" --home /app unstract;

USER unstract

WORKDIR /app

COPY ${BUILD_CONTEXT_PATH} .
Expand Down

0 comments on commit acf78f5

Please sign in to comment.