From e0b72eb58d15b320a5ccb996ea5a92f1291a2623 Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Mon, 11 Mar 2024 23:50:51 +0800 Subject: [PATCH] Add kuzudb version number to image --- .github/workflows/build-and-deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 9fb3989..5120792 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -32,6 +32,11 @@ jobs: run: npm run fetch-datasets - name: Prebuild - cleanup run: rm -rf node_modules + - name: Prebuild - get version + shell: bash + run: | + VERSION=$(node -e 'fs=require("fs");console.log(JSON.parse(fs.readFileSync("package.json")).dependencies.kuzu)') + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx @@ -47,7 +52,7 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - tags: kuzudb/explorer:latest + tags: kuzudb/explorer:latest, kuzudb/explorer:${{ env.VERSION }} build-args: | SKIP_GRAMMAR=true SKIP_BUILD_APP=true