fix: Fix CI failure when building manylinux image #3
Workflow file for this run
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
name: Build GraphScope Manylinux Images | |
# build `graphscope/manylinux2014` image based on centos7, including all necessary | |
# dependencies except vineyard | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'python/graphscope/gsctl/scripts/**' | |
- '.github/workflows/build-graphscope-manylinux-images.yml' | |
concurrency: | |
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }} | |
cancel-in-progress: true | |
env: | |
REGISTRY: registry.cn-hongkong.aliyuncs.com | |
jobs: | |
build-manylinux-image-x86-64: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build Image | |
run: | | |
cd ${GITHUB_WORKSPACE}/k8s | |
# output: graphscope/manylinux:x86_64 | |
make manylinux2014 | |
- name: Release Image | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
env: | |
docker_password: ${{ secrets.DOCKER_PASSWORD }} | |
docker_username: ${{ secrets.DOCKER_USER }} | |
run: | | |
echo "${docker_password}" | sudo docker login --username="${docker_username}" ${{ env.REGISTRY }} --password-stdin | |
# x86_64 | |
arch=$(uname -m) | |
# manylinux2014 image | |
sudo docker tag graphscope/manylinux2014:${arch} ${{ env.REGISTRY }}/graphscope/manylinux2014:${arch} | |
sudo docker push ${{ env.REGISTRY }}/graphscope/manylinux2014:${arch} | |
build-manylinux-image-aarch64: | |
runs-on: macos-14 | |
if: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build Image | |
run: | | |
cd ${GITHUB_WORKSPACE}/k8s | |
# output: graphscope/manylinux2014:arm64 | |
make manylinux2014 | |
- name: Release Image | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
env: | |
docker_password: ${{ secrets.DOCKER_PASSWORD }} | |
docker_username: ${{ secrets.DOCKER_USER }} | |
run: | | |
echo "${docker_password}" | sudo docker login --username="${docker_username}" ${{ env.REGISTRY }} --password-stdin | |
# arm64 | |
arch=$(uname -m) | |
# manylinux2014 image | |
sudo docker tag graphscope/manylinux2014:${arch} ${{ env.REGISTRY }}/graphscope/manylinux2014:${arch} | |
sudo docker push ${{ env.REGISTRY }}/graphscope/manylinux2014:${arch} | |
manifest_push: | |
runs-on: ubuntu-20.04 | |
if: false | |
needs: [build-manylinux-image-x86-64, build-manylinux-image-aarch64] | |
steps: | |
- name: Create and Push Docker Manifest | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
env: | |
docker_password: ${{ secrets.DOCKER_PASSWORD }} | |
docker_username: ${{ secrets.DOCKER_USER }} | |
run: | | |
echo "${docker_password}" | sudo docker login --username="${docker_username}" ${{ env.REGISTRY }} --password-stdin | |
# create | |
sudo docker manifest create \ | |
${{ env.REGISTRY }}/graphscope/manylinux2014:latest \ | |
${{ env.REGISTRY }}/graphscope/manylinux2014:x86_64 \ | |
${{ env.REGISTRY }}/graphscope/manylinux2014:arm64 | |
# push | |
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/manylinux2014:latest |