Skip to content

Commit

Permalink
thirdparty depends on each os version
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Oct 17, 2024
1 parent 19a9b35 commit 9c05a06
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/thirdparty-regular-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ jobs:
build-args: |
GITHUB_BRANCH=${{ github.ref_name }}
OS_VERSION=${{ matrix.osversion }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
- name: Generate output
id: gen_output
run: echo "os_version=${{ matrix.osversion }}" >> "$GITHUB_OUTPUT"

build_push_bin_docker_images:
runs-on: ubuntu-latest
Expand All @@ -92,6 +93,7 @@ jobs:
- ubuntu2004
- ubuntu2204
- centos7
if: ${{ needs.build_push_src_docker_images.outputs.os_version == matrix.osversion }}
steps:
# The glibc version on ubuntu1804 and centos7 is lower than the actions/checkout@v4 required, so
# we need to force to use actions/checkout@v3.
Expand All @@ -116,8 +118,6 @@ jobs:
build-args: |
GITHUB_BRANCH=${{ github.ref_name }}
OS_VERSION=${{ matrix.osversion }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
build_push_bin_jemalloc_docker_images:
runs-on: ubuntu-latest
Expand All @@ -136,6 +136,7 @@ jobs:
- ubuntu2004
- ubuntu2204
- centos7
if: ${{ needs.build_push_src_docker_images.outputs.os_version == matrix.osversion }}
steps:
# The glibc version on ubuntu1804 and centos7 is lower than the actions/checkout@v4 required, so
# we need to force to use actions/checkout@v3.
Expand All @@ -161,8 +162,6 @@ jobs:
GITHUB_BRANCH=${{ github.ref_name }}
OS_VERSION=${{ matrix.osversion }}
USE_JEMALLOC=ON
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
build_push_bin_test_docker_images:
runs-on: ubuntu-latest
Expand All @@ -172,6 +171,7 @@ jobs:
matrix:
osversion:
- ubuntu2204
if: ${{ needs.build_push_src_docker_images.outputs.os_version == matrix.osversion }}
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
Expand All @@ -197,8 +197,6 @@ jobs:
ROCKSDB_PORTABLE=1
HADOOP_BIN_PATH=hadoop-bin
ZOOKEEPER_BIN_PATH=zookeeper-bin
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
build_push_bin_test_jemalloc_docker_images:
runs-on: ubuntu-latest
Expand All @@ -208,6 +206,7 @@ jobs:
matrix:
osversion:
- ubuntu2204
if: ${{ needs.build_push_src_docker_images.outputs.os_version == matrix.osversion }}
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
Expand All @@ -234,5 +233,3 @@ jobs:
USE_JEMALLOC=ON
HADOOP_BIN_PATH=hadoop-bin
ZOOKEEPER_BIN_PATH=zookeeper-bin
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 9c05a06

Please sign in to comment.