Skip to content

Commit

Permalink
Update Workflow To Publish UI (tensorlakeai#316)
Browse files Browse the repository at this point in the history
* publish ui and move dockerfile to dockerfiles

* bump version
  • Loading branch information
lucasjacks0n authored Feb 6, 2024
1 parent 0be4939 commit b12b0ec
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish_indexify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ jobs:
source-dir: .repo
destination-dir: ./repo

build-and-push-docker-image:
name: Build and Push Docker Image
build-and-push-docker-images:
name: Build and Push Docker Images
runs-on: ubuntu-latest
needs:
- extract-version
Expand All @@ -250,6 +250,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: |
docker buildx build --platform=linux/amd64,linux/arm64 --push . -t tensorlake/indexify:latest -t tensorlake/indexify:stable -f dockerfiles/Dockerfile.compose;
docker buildx build --platform=linux/amd64,linux/arm64 --push ui -t tensorlake/indexify-ui:latest -t tensorlake/indexify-ui:stable -f dockerfiles/Dockerfile.ui
tag="";
for i in $(echo ${{ needs.extract-version.outputs.version }} | tr '.' '\n')
Expand All @@ -260,4 +261,5 @@ jobs:
tag="$tag.$i";
fi
docker buildx build --platform=linux/amd64,linux/arm64 --push . -t tensorlake/indexify:$tag -f dockerfiles/Dockerfile.compose;
docker buildx build --platform=linux/amd64,linux/arm64 --push ui -t tensorlake/indexify-ui:$tag -f dockerfiles/Dockerfile.ui
done
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "indexify"
version = "0.0.4"
version = "0.0.5"
edition = "2021"
authors = ["Diptanu Gon Choudhury <[email protected]>"]
build = "build.rs"
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ build-base-extractor-push: build-base-builder-multistage ## Build and push base
push-container: ## Push container to docker hub
docker buildx build -f dockerfiles/Dockerfile.compose --platform linux/amd64,linux/arm64 --push --tag ${DOCKER_USERNAME}/${APPLICATION_NAME} .

build-ui: ## Build Indexify UI
docker build -f dockerfiles/Dockerfile.ui --tag ${DOCKER_USERNAME}/indexify-ui .

entity: ## Generate entity
sea-orm-cli generate entity -o src/entity --with-serde both --date-time-crate time

Expand Down
5 changes: 2 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ services:
ipv4_address: 172.21.0.10
profiles: ["redis"] # only create a redis service if the "redis" profile is enabled
ui:
build:
context: ui
command: npm run start
image: tensorlake/indexify-ui
command: ["npm", "run", "start"]
ports:
- 3000:3000
volumes:
Expand Down
5 changes: 2 additions & 3 deletions ui/Dockerfile → dockerfiles/Dockerfile.ui
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=amd64 node
FROM node

WORKDIR /app

Expand All @@ -8,5 +8,4 @@ RUN npm install

COPY . .

RUN npm run build

RUN npm run build

0 comments on commit b12b0ec

Please sign in to comment.