pull file
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
Close Stale Issues / close_stale_issues (push) Has been cancelled
repo-sync / repo-sync (push) Has been cancelled
auto-deploy-tencent-scf / pre-check (push) Has been cancelled
auto-deploy-tencent-scf / deploy serverless (push) Has been cancelled
This commit is contained in:
8
docker/build/buildAndPushImage_multiArch.ps1
Normal file
8
docker/build/buildAndPushImage_multiArch.ps1
Normal file
@@ -0,0 +1,8 @@
|
||||
echo "start to build"
|
||||
# https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
|
||||
# https://segmentfault.com/a/1190000021166703
|
||||
# linux/arm/v6,linux/riscv64,linux/s390x,linux/ppc64le,linux/386,,linux/arm/v7 偶发异常,待进一步测试
|
||||
echo "Start to build docker image with multi-arch"
|
||||
# $image="zai7lou/bilibili_tool_pro"
|
||||
# $version="0.0.5"
|
||||
docker buildx build --tag "zai7lou/bilibili_tool_pro:0.0.5" --tag "zai7lou/bilibili_tool_pro:latest" --output "type=image,push=true" --platform linux/amd64,linux/arm64 ../..
|
||||
8
docker/build/buildImage.cmd
Normal file
8
docker/build/buildImage.cmd
Normal file
@@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
|
||||
REM start to build
|
||||
echo Start to build docker image
|
||||
@echo on
|
||||
docker build --tag zai7lou/bilibili_tool_pro:latest ../..
|
||||
@echo off
|
||||
pause
|
||||
10
docker/build/buildImage_amd64.cmd
Normal file
10
docker/build/buildImage_amd64.cmd
Normal file
@@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
|
||||
REM start to build
|
||||
REM https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
|
||||
REM https://segmentfault.com/a/1190000021166703
|
||||
echo Start to build docker image with amd64-arch
|
||||
@echo on
|
||||
docker buildx build --tag zai7lou/bilibili_tool_pro:latest --output "type=image,push=false" --platform linux/amd64 ../..
|
||||
@echo off
|
||||
pause
|
||||
10
docker/build/buildImage_arm64.cmd
Normal file
10
docker/build/buildImage_arm64.cmd
Normal file
@@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
|
||||
REM start to build
|
||||
REM https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/
|
||||
REM https://segmentfault.com/a/1190000021166703
|
||||
echo Start to build docker image with arm64-arch
|
||||
@echo on
|
||||
docker buildx build --platform linux/arm64 -o type=docker -t zai7lou/bilibili_tool ../..
|
||||
@echo off
|
||||
pause
|
||||
Reference in New Issue
Block a user