-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from epsilla-cloud/dev
build allinone docker image for both amd64 and arm64
- Loading branch information
Showing
4 changed files
with
121 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build Vectordb | ||
|
||
on: | ||
push: | ||
branches: [ "dev" ] | ||
paths: ['engine/Dockerfile'] | ||
|
||
jobs: | ||
build: | ||
|
||
name: Build Vectordb | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Get Current Date | ||
id: date | ||
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')" | ||
|
||
- name: Build | ||
env: | ||
DOCKER_HUB_REPOSITORY: epsilla/vectordb | ||
SHA_TAG: ${{ github.sha }} | ||
run: | | ||
export IMAGE_TAG=${{ steps.date.outputs.date }} | ||
export IMAGE_TAG_LATEST="latest" | ||
echo "IMAGE_TAG: ${IMAGE_TAG}" | ||
echo "SHA: ${SHA_TAG}" | ||
wget https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64 | ||
chmod +x buildx-v0.11.2.linux-amd64 | ||
mkdir -p $HOME/.docker/cli-plugins | ||
mv buildx-v0.11.2.linux-amd64 $HOME/.docker/cli-plugins/docker-buildx | ||
docker buildx create --use | ||
cd ./engine | ||
docker buildx build --build-arg="RELEASE_VERSION=${IMAGE_TAG}" \ | ||
--platform linux/amd64,linux/arm64 \ | ||
--label "org.opencontainers.image.description"="Official Epsilla Vector Database Image" \ | ||
--label "org.opencontainers.image.documentation"="https://epsilla-inc.gitbook.io/epsilladb" \ | ||
--label "org.opencontainers.image.source"="https://github.com/epsilla-cloud/vectordb" \ | ||
--label "org.opencontainers.image.title"="Epsilla Vector Database" \ | ||
--label "org.opencontainers.image.url"="https://www.epsilla.com" \ | ||
--label "org.opencontainers.image.vendor"="Epsilla" \ | ||
--label "org.opencontainers.image.version"=${IMAGE_TAG} \ | ||
--push \ | ||
-t epsilla/vectordb:dev . | ||
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
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
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