Skip to content

Commit

Permalink
chore: build-tool base for both arm64 & amd64 (#14751)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Feb 27, 2024
1 parent d164a00 commit 9d36698
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build_tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,16 @@ jobs:
echo "TOOLCHAIN=${version}" >> $GITHUB_OUTPUT
- name: Build and publish databend build base image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
pull: true
push: true
tags: |
${{ steps.login.outputs.dockerhub_repo }}:base
${{ steps.login.outputs.dockerhub_repo }}:base-${{ steps.toolchain.outputs.TOOLCHAIN }}
${{ steps.login.outputs.ecr_repo }}:base
${{ steps.login.outputs.ecr_repo }}:base-${{ steps.toolchain.outputs.TOOLCHAIN }}
context: ./scripts/setup
file: ./docker/build-tool/base/Dockerfile
platforms: linux/amd64,linux/arm64

build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -75,7 +74,7 @@ jobs:
echo "TOOLCHAIN=${version}" >> $GITHUB_OUTPUT
- name: Build and publish databend build image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
pull: true
push: true
Expand Down Expand Up @@ -111,7 +110,7 @@ jobs:
echo "TOOLCHAIN=${version}" >> $GITHUB_OUTPUT
- name: Build and publish databend build base image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
pull: true
push: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
short_sha=$(echo "${{ needs.info.outputs.sha }}" | cut -c1-7)
echo "tag=pr-${{ github.event.pull_request.number }}-${short_sha}" >> $GITHUB_OUTPUT
- name: push service image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.login.outputs.ecr_repo }}:${{ steps.prepare.outputs.tag }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ jobs:
core.setOutput('tags', tags.join(','));
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.tags.outputs.tags }}
Expand Down Expand Up @@ -454,7 +454,7 @@ jobs:
}
core.setOutput('tags', tags.join(','));
- name: push service image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.tags.outputs.tags }}
Expand Down
9 changes: 0 additions & 9 deletions docker/build-tool/musl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@ RUN ln -s ${MUSL_TARGET}-gcc /usr/local/bin/musl-gcc

RUN rustup target add ${MUSL_RUST_TARGET}

# HACK: To avoid the `undefined reference to pthread_getname_np` error during linking,
# here we override set config environment var `je_cv_pthread_getname_np` to `no`,
# as suggested by tikv-jemalloc-sys's maintainer @BusyJay:
# https://github.com/tikv/jemallocator/issues/30#issuecomment-1183786410
#
# Hopefully this trick can be removed when rust upgraded to musl 1.2.3
# https://github.com/rust-lang/rust/pull/102891
ENV je_cv_pthread_getname_np no

# needed by z3
RUN ln -s ${MUSL_TARGET}-g++ /usr/local/bin/musl-g++
RUN ln -s ${MUSL_TARGET}-ar /usr/local/bin/musl-ar
Expand Down

0 comments on commit 9d36698

Please sign in to comment.