Skip to content

Commit

Permalink
ci: Dockerhub sync multi-platform image
Browse files Browse the repository at this point in the history
Signed-off-by: ShuangxueWu <[email protected]>
  • Loading branch information
qingchoulove committed Jul 27, 2023
1 parent 9c1c28f commit 99f5a01
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/kubespider-image-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
fail-fast: true

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -54,16 +57,10 @@ jobs:

- name: Push images to DockerHub
run: |
set -x
docker tag p3terx/aria2-pro:${{ github.event.inputs.aria2-pro-version }} cesign/aria2-pro:${{ github.event.inputs.aria2-pro-version }}
docker tag johngong/baidunetdisk:${{ github.event.inputs.baidu-disk-version }} cesign/baidunetdisk:${{ github.event.inputs.baidu-disk-version }}
docker tag linuxserver/plex:${{ github.event.inputs.plex-version }} cesign/plex:${{ github.event.inputs.plex-version }}
docker tag cnk3x/xunlei:${{ github.event.inputs.thunder-version }} cesign/xunlei:${{ github.event.inputs.thunder-version }}
docker push cesign/aria2-pro:${{ github.event.inputs.aria2-pro-version }}
docker push cesign/baidunetdisk:${{ github.event.inputs.baidu-disk-version }}
docker push cesign/plex:${{ github.event.inputs.plex-version }}
docker push cesign/xunlei:${{ github.event.inputs.thunder-version }}
docker buildx imagetools create --tag p3terx/aria2-pro:${{ github.event.inputs.aria2-pro-version }} cesign/aria2-pro:${{ github.event.inputs.aria2-pro-version }}
docker buildx imagetools create --tag johngong/baidunetdisk:${{ github.event.inputs.baidu-disk-version }} cesign/baidunetdisk:${{ github.event.inputs.baidu-disk-version }}
docker buildx imagetools create --tag linuxserver/plex:${{ github.event.inputs.plex-version }} cesign/plex:${{ github.event.inputs.plex-version }}
docker buildx imagetools create --tag cnk3x/xunlei:${{ github.event.inputs.thunder-version }} cesign/xunlei:${{ github.event.inputs.thunder-version }}
sync-to-aliyun:
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 99f5a01

Please sign in to comment.