Skip to content

Build GraphScope Images on Linux #789

Build GraphScope Images on Linux

Build GraphScope Images on Linux #789

name: Build GraphScope Images on Linux
# on: [push, pull_request]
on:
workflow_dispatch:
schedule:
# The notifications for scheduled workflows are sent to the user who
# last modified the cron syntax in the workflow file.
# Trigger the workflow at 03:00(CST) every day.
- cron: '00 19 * * *'
push:
tags:
- "v*"
pull_request:
branches:
- main
paths:
- 'k8s/dockerfiles/analytical.Dockerfile'
- 'k8s/dockerfiles/coordinator.Dockerfile'
- 'k8s/dockerfiles/interactive.Dockerfile'
- 'k8s/dockerfiles/learning.Dockerfile'
- 'k8s/dockerfiles/graphlearn-torch.Dockerfile'
- '.github/workflows/build-graphscope-images-linux.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-image-x86-64:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Add envs to GITHUB_ENV
run: |
short_sha=$(git rev-parse --short HEAD)
echo "SHORT_SHA=${short_sha}" >> $GITHUB_ENV
- name: Build GraphScope Image
run: |
bash ${GITHUB_WORKSPACE}/.github/free-disk-space.sh || true
cd ${GITHUB_WORKSPACE}/k8s
df -h
make coordinator CI=false VERSION=${SHORT_SHA}
df -h
make analytical CI=false VERSION=${SHORT_SHA}
df -h
# skip build analytical-java
# make analytical-java CI=false VERSION=${SHORT_SHA}
make interactive-frontend CI=false VERSION=${SHORT_SHA}
df -h
make interactive-executor CI=false VERSION=${SHORT_SHA}
df -h
make learning CI=false VERSION=${SHORT_SHA}
df -h
make graphlearn-torch CI=false VERSION=${SHORT_SHA}
df -h
- name: Release Nightly Image
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
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)
# docker tag: 0.15.0 -> 0.15.0a20220808
time=$(date "+%Y%m%d")
version=$(cat ${GITHUB_WORKSPACE}/VERSION)
tag="${version}a${time}"
# graphscope image
sudo docker tag graphscope/coordinator:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker tag graphscope/analytical:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker tag graphscope/analytical-java:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker tag graphscope/interactive-frontend:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker tag graphscope/interactive-executor:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker tag graphscope/learning:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/learning:${tag}
sudo docker tag graphscope/graphlearn-torch:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# Don't push analytical-java, since it's relatively large and not used at this moment.
# sudo docker push ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/learning:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
# dataset image
# Note! dataset image are built manually just use the latest one.
sudo docker pull ${{ env.REGISTRY }}/graphscope/dataset:latest
sudo docker tag ${{ env.REGISTRY }}/graphscope/dataset:latest ${{ env.REGISTRY }}/graphscope/dataset:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/dataset:${tag}
- name: Extract Tag Name
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
id: tag
run: echo "TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Release Image
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
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)
# Release version tag
tag=${{ steps.tag.outputs.TAG }}
# graphscope image
sudo docker tag graphscope/coordinator:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker tag graphscope/analytical:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker tag graphscope/analytical-java:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker tag graphscope/interactive-frontend:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker tag graphscope/interactive-executor:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker tag graphscope/learning:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/learning:${tag}
sudo docker tag graphscope/graphlearn-torch:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker push ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/learning:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
# dataset image
# Note! dataset image are built manually just use the latest one.
sudo docker pull ${{ env.REGISTRY }}/graphscope/dataset:latest
sudo docker tag ${{ env.REGISTRY }}/graphscope/dataset:latest ${{ env.REGISTRY }}/graphscope/dataset:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/dataset:${tag}
# Release the latest tag
tag=latest
sudo docker tag graphscope/coordinator:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker tag graphscope/analytical:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker tag graphscope/analytical-java:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker tag graphscope/interactive-frontend:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker tag graphscope/interactive-executor:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker tag graphscope/learning:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/learning:${tag}
sudo docker tag graphscope/graphlearn-torch:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker push ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/learning:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
build-image-aarch64:
runs-on: [self-hosted, Linux, ARM64]
# if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope') || (github.pull_request == 'pull_request') || (github.event_name == 'workflow_dispatch')
if: false
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Add envs to GITHUB_ENV
run: |
short_sha=$(git rev-parse --short HEAD)
echo "SHORT_SHA=${short_sha}" >> $GITHUB_ENV
- name: Build GraphScope Image
run: |
cd ${GITHUB_WORKSPACE}/k8s
make coordinator CI=false VERSION=${SHORT_SHA}
make analytical CI=false VERSION=${SHORT_SHA}
# skip build analytical-java
# make analytical-java CI=false VERSION=${SHORT_SHA}
make interactive-frontend CI=false VERSION=${SHORT_SHA}
make interactive-executor CI=false VERSION=${SHORT_SHA}
make learning CI=false VERSION=${SHORT_SHA}
# make graphlearn-torch CI=false VERSION=${SHORT_SHA}
- name: Release Nightly Image
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
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
# aarch64
arch=$(uname -m)
# docker tag: 0.15.0 -> 0.15.0a20220808
time=$(date "+%Y%m%d")
version=$(cat ${GITHUB_WORKSPACE}/VERSION)
tag="${version}a${time}"-${arch}
# graphscope image
sudo docker tag graphscope/coordinator:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker tag graphscope/analytical:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker tag graphscope/analytical-java:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker tag graphscope/interactive-frontend:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker tag graphscope/interactive-executor:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker tag graphscope/learning:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/learning:${tag}
# sudo docker tag graphscope/graphlearn-torch:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# Don't push analytical-java, since it's relatively large and not used at this moment.
# sudo docker push ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/learning:${tag}
# sudo docker push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
- name: Extract Tag Name
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
id: tag
run: echo "TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Release Image
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
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
# aarch64
arch=$(uname -m)
# Release version tag
tag=${{ steps.tag.outputs.TAG }}-${arch}
# graphscope image
sudo docker tag graphscope/coordinator:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker tag graphscope/analytical:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker tag graphscope/analytical-java:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker tag graphscope/interactive-frontend:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker tag graphscope/interactive-executor:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker tag graphscope/learning:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/learning:${tag}
# sudo docker tag graphscope/graphlearn-torch:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker push ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/learning:${tag}
# sudo docker push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
# Release the latest tag
tag=latest-${arch}
sudo docker tag graphscope/coordinator:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker tag graphscope/analytical:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker tag graphscope/analytical-java:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker tag graphscope/interactive-frontend:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker tag graphscope/interactive-executor:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker tag graphscope/learning:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/learning:${tag}
# sudo docker tag graphscope/graphlearn-torch:${SHORT_SHA} ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/coordinator:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/analytical:${tag}
# skip build analytical-java
# sudo docker push ${{ env.REGISTRY }}/graphscope/analytical-java:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag}
sudo docker push ${{ env.REGISTRY }}/graphscope/learning:${tag}
# sudo docker push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag}
- name: Clean Nightly Image
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope' }}
run: |
# aarch64
arch=$(uname -m)
# docker tag: 0.15.0 -> 0.15.0a20220808
time=$(date "+%Y%m%d")
version=$(cat ${GITHUB_WORKSPACE}/VERSION)
tag="${version}a${time}"-${arch}
# clean
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/coordinator:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/analytical:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/analytical-java:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/learning:${tag} || true
# sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag} || true
tag=${SHORT_SHA}
sudo docker rmi -f graphscope/coordinator:${tag} || true
sudo docker rmi -f graphscope/analytical:${tag} || true
sudo docker rmi -f graphscope/analytical-java:${tag} || true
sudo docker rmi -f graphscope/interactive-frontend:${tag} || true
sudo docker rmi -f graphscope/interactive-executor:${tag} || true
sudo docker rmi -f graphscope/learning:${tag} || true
# sudo docker rmi -f graphscope/graphlearn-torch:${tag} || true
- name: Clean Release Image
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
run: |
# aarch64
arch=$(uname -m)
# Release version tag
tag=${{ steps.tag.outputs.TAG }}-${arch}
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/coordinator:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/analytical:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/analytical-java:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/learning:${tag} || true
# sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag} || true
tag=latest-${arch}
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/coordinator:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/analytical:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/analytical-java:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/interactive-frontend:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/interactive-executor:${tag} || true
sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/learning:${tag} || true
# sudo docker rmi -f ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${tag} || true
tag=${SHORT_SHA}
sudo docker rmi -f graphscope/coordinator:${tag} || true
sudo docker rmi -f graphscope/analytical:${tag} || true
sudo docker rmi -f graphscope/analytical-java:${tag} || true
sudo docker rmi -f graphscope/interactive-frontend:${tag} || true
sudo docker rmi -f graphscope/interactive-executor:${tag} || true
sudo docker rmi -f graphscope/learning:${tag} || true
# sudo docker rmi -f graphscope/graphlearn-torch:${tag} || true
manifest-push-image:
runs-on: ubuntu-20.04
# if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope') || (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope')
if: false
needs: [build-image-x86-64, build-image-aarch64]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Create and Push Docker Nightly Manifest
if: (github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphScope')
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
time=$(date "+%Y%m%d")
version=$(cat ${GITHUB_WORKSPACE}/VERSION)
# create
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/coordinator:${version}a${time} \
${{ env.REGISTRY }}/graphscope/coordinator:${version}a${time}-x86_64 \
${{ env.REGISTRY }}/graphscope/coordinator:${version}a${time}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/analytical:${version}a${time} \
${{ env.REGISTRY }}/graphscope/analytical:${version}a${time}-x86_64 \
${{ env.REGISTRY }}/graphscope/analytical:${version}a${time}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/interactive-frontend:${version}a${time} \
${{ env.REGISTRY }}/graphscope/interactive-frontend:${version}a${time}-x86_64 \
${{ env.REGISTRY }}/graphscope/interactive-frontend:${version}a${time}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/interactive-executor:${version}a${time} \
${{ env.REGISTRY }}/graphscope/interactive-executor:${version}a${time}-x86_64 \
${{ env.REGISTRY }}/graphscope/interactive-executor:${version}a${time}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/learning:${version}a${time} \
${{ env.REGISTRY }}/graphscope/learning:${version}a${time}-x86_64 \
${{ env.REGISTRY }}/graphscope/learning:${version}a${time}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/graphlearn-torch:${version}a${time} \
${{ env.REGISTRY }}/graphscope/graphlearn-torch:${version}a${time}-x86_64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/dataset:${version}a${time} \
${{ env.REGISTRY }}/graphscope/dataset:${version}a${time}-x86_64
# push
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/coordinator:${version}a${time}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/analytical:${version}a${time}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/interactive-frontend:${version}a${time}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/interactive-executor:${version}a${time}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/learning:${version}a${time}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${version}a${time}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/dataset:${version}a${time}
- name: Extract Tag Name
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
id: tag
run: echo "TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create and Push Docker Release Manifest
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'alibaba/GraphScope' }}
env:
docker_password: ${{ secrets.DOCKER_PASSWORD }}
docker_username: ${{ secrets.DOCKER_USER }}
run: |
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/coordinator:${{ steps.tag.outputs.TAG }} \
${{ env.REGISTRY }}/graphscope/coordinator:${{ steps.tag.outputs.TAG }}-x86_64 \
${{ env.REGISTRY }}/graphscope/coordinator:${{ steps.tag.outputs.TAG }}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/analytical:${{ steps.tag.outputs.TAG }} \
${{ env.REGISTRY }}/graphscope/analytical:${{ steps.tag.outputs.TAG }}-x86_64 \
${{ env.REGISTRY }}/graphscope/analytical:${{ steps.tag.outputs.TAG }}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/interactive-frontend:${{ steps.tag.outputs.TAG }} \
${{ env.REGISTRY }}/graphscope/interactive-frontend:${{ steps.tag.outputs.TAG }}-x86_64 \
${{ env.REGISTRY }}/graphscope/interactive-frontend:${{ steps.tag.outputs.TAG }}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/interactive-executor:${{ steps.tag.outputs.TAG }} \
${{ env.REGISTRY }}/graphscope/interactive-executor:${{ steps.tag.outputs.TAG }}-x86_64 \
${{ env.REGISTRY }}/graphscope/interactive-executor:${{ steps.tag.outputs.TAG }}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/learning:${{ steps.tag.outputs.TAG }} \
${{ env.REGISTRY }}/graphscope/learning:${{ steps.tag.outputs.TAG }}-x86_64 \
${{ env.REGISTRY }}/graphscope/learning:${{ steps.tag.outputs.TAG }}-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/graphlearn-torch:${{ steps.tag.outputs.TAG }} \
${{ env.REGISTRY }}/graphscope/graphlearn-torch:${{ steps.tag.outputs.TAG }}-x86_64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/dataset:${{ steps.tag.outputs.TAG }} \
${{ env.REGISTRY }}/graphscope/dataset:${{ steps.tag.outputs.TAG }}-x86_64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/coordinator:latest \
${{ env.REGISTRY }}/graphscope/coordinator:latest-x86_64 \
${{ env.REGISTRY }}/graphscope/coordinator:latest-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/analytical:latest \
${{ env.REGISTRY }}/graphscope/analytical:latest-x86_64 \
${{ env.REGISTRY }}/graphscope/analytical:latest-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/interactive-frontend:latest \
${{ env.REGISTRY }}/graphscope/interactive-frontend:latest-x86_64 \
${{ env.REGISTRY }}/graphscope/interactive-frontend:latest-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/interactive-executor:latest \
${{ env.REGISTRY }}/graphscope/interactive-executor:latest-x86_64 \
${{ env.REGISTRY }}/graphscope/interactive-executor:latest-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/learning:latest \
${{ env.REGISTRY }}/graphscope/learning:latest-x86_64 \
${{ env.REGISTRY }}/graphscope/learning:latest-aarch64
sudo docker manifest create \
${{ env.REGISTRY }}/graphscope/graphlearn-torch:latest \
${{ env.REGISTRY }}/graphscope/graphlearn-torch:latest-x86_64
# push
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/coordinator:${{ steps.tag.outputs.TAG }}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/analytical:${{ steps.tag.outputs.TAG }}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/interactive-frontend:${{ steps.tag.outputs.TAG }}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/interactive-executor:${{ steps.tag.outputs.TAG }}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/learning:${{ steps.tag.outputs.TAG }}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:${{ steps.tag.outputs.TAG }}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/dataset:${{ steps.tag.outputs.TAG }}
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/coordinator:latest
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/analytical:latest
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/interactive-frontend:latest
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/interactive-executor:latest
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/learning:latest
sudo docker manifest push ${{ env.REGISTRY }}/graphscope/graphlearn-torch:latest