diff --git a/.github/actions/build-greptime-binary/action.yml b/.github/actions/build-greptime-binary/action.yml index 268b76275a..be76133a38 100644 --- a/.github/actions/build-greptime-binary/action.yml +++ b/.github/actions/build-greptime-binary/action.yml @@ -24,6 +24,14 @@ inputs: description: Build android artifacts required: false default: 'false' + image-namespace: + description: Image Namespace + required: false + default: 'greptime' + image-registry: + description: Image Registry + required: false + default: 'docker.io' runs: using: composite steps: @@ -35,7 +43,9 @@ runs: make build-by-dev-builder \ CARGO_PROFILE=${{ inputs.cargo-profile }} \ FEATURES=${{ inputs.features }} \ - BASE_IMAGE=${{ inputs.base-image }} + BASE_IMAGE=${{ inputs.base-image }} \ + IMAGE_NAMESPACE=${{ input.image-namespace }} \ + IMAGE_REGISTRY=${{ input.image-registry }} - name: Upload artifacts uses: ./.github/actions/upload-artifacts diff --git a/.github/actions/build-linux-artifacts/action.yml b/.github/actions/build-linux-artifacts/action.yml index 8c5c0a6c4b..dfbe856560 100644 --- a/.github/actions/build-linux-artifacts/action.yml +++ b/.github/actions/build-linux-artifacts/action.yml @@ -30,7 +30,9 @@ runs: # NOTE: If the BUILD_JOBS > 4, it's always OOM in EC2 instance. run: | cd ${{ inputs.working-dir }} && \ - make run-it-in-container BUILD_JOBS=4 + make run-it-in-container BUILD_JOBS=4 \ + IMAGE_NAMESPACE=i8k6a5e1/greptime \ + IMAGE_REGISTRY=public.ecr.aws - name: Upload sqlness logs if: ${{ failure() && inputs.disable-run-tests == 'false' }} # Only upload logs when the integration tests failed. @@ -49,6 +51,8 @@ runs: artifacts-dir: greptime-linux-${{ inputs.arch }}-pyo3-${{ inputs.version }} version: ${{ inputs.version }} working-dir: ${{ inputs.working-dir }} + image-registry: public.ecr.aws + image-namespace: i8k6a5e1/greptime - name: Build greptime without pyo3 if: ${{ inputs.dev-mode == 'false' }} @@ -60,6 +64,8 @@ runs: artifacts-dir: greptime-linux-${{ inputs.arch }}-${{ inputs.version }} version: ${{ inputs.version }} working-dir: ${{ inputs.working-dir }} + image-registry: public.ecr.aws + image-namespace: i8k6a5e1/greptime - name: Clean up the target directory # Clean up the target directory for the centos7 base image, or it will still use the objects of last build. shell: bash @@ -76,6 +82,8 @@ runs: artifacts-dir: greptime-linux-${{ inputs.arch }}-centos-${{ inputs.version }} version: ${{ inputs.version }} working-dir: ${{ inputs.working-dir }} + image-registry: public.ecr.aws + image-namespace: i8k6a5e1/greptime - name: Build greptime on android base image uses: ./.github/actions/build-greptime-binary @@ -86,3 +94,5 @@ runs: version: ${{ inputs.version }} working-dir: ${{ inputs.working-dir }} build-android-artifacts: true + image-registry: public.ecr.aws + image-namespace: i8k6a5e1/greptime