Skip to content

Commit

Permalink
chore: publish image to aliyun docker mirror (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
tongke6 authored Jun 26, 2024
1 parent d9c8132 commit ed307b0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/release-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ jobs:
- run:
name: Build Docker image
command: |
# login docker
# login dockerhub & secretflow aliyun docker registry
docker login -u secretflow -p ${DOCKER_DEPLOY_TOKEN}
docker login -u ${ALIYUN_DOCKER_USERNAME} -p ${ALIYUN_DOCKER_PASSWORD} secretflow-registry.cn-hangzhou.cr.aliyuncs.com
ALIYUN_IMAGE="secretflow-registry.cn-hangzhou.cr.aliyuncs.com/secretflow/scql"
ls /tmp/binary/linux/amd64/
ls /tmp/binary/linux/arm64/
Expand Down Expand Up @@ -126,6 +129,11 @@ jobs:
docker buildx build --platform linux/arm64,linux/amd64 -f scql-ubuntu.Dockerfile -t secretflow/scql:latest --push .
docker buildx build --platform linux/arm64,linux/amd64 -f scql-ubuntu.Dockerfile -t secretflow/scql:stable --push .
# push to aliyun image repo
docker buildx build --platform linux/arm64,linux/amd64 -f scql-ubuntu.Dockerfile -t ${ALIYUN_IMAGE}:$TAG --push .
docker buildx build --platform linux/arm64,linux/amd64 -f scql-ubuntu.Dockerfile -t ${ALIYUN_IMAGE}:latest --push .
docker buildx build --platform linux/arm64,linux/amd64 -f scql-ubuntu.Dockerfile -t ${ALIYUN_IMAGE}:stable --push .
# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
workflows:
Expand Down

0 comments on commit ed307b0

Please sign in to comment.