构建脚本准备

This commit is contained in:
2026-02-14 22:21:33 +08:00
parent 25c2af1b52
commit 3e23ed99d1

View File

@@ -5,26 +5,23 @@ export REGISTRY=registry.yqxpro.com
pushd common-base pushd common-base
npx devcontainer build \ npx devcontainer build \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64,linux/arm64 \
--image-name ${REGISTRY}/devcontainers/common-base \ --image-name ${REGISTRY}/devcontainers/common-base --push \
--cache-to type=registry,ref=${REGISTRY}/devcontainers/common-base:buildcache,mode=max \ --cache-to type=registry,ref=${REGISTRY}/devcontainers/common-base:buildcache,mode=max \
--cache-from type=registry,ref=${REGISTRY}/devcontainers/common-base:buildcache && \ --cache-from type=registry,ref=${REGISTRY}/devcontainers/common-base:buildcache && \
docker push ${REGISTRY}/devcontainers/common-base &&\
popd popd
pushd develop-base pushd develop-base
npx devcontainer build \ npx devcontainer build \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64,linux/arm64 \
--image-name ${REGISTRY}/devcontainers/develop-base \ --image-name ${REGISTRY}/devcontainers/develop-base --push \
--cache-to type=local,ref=${REGISTRY}/devcontainers/develop-base,mode=max \ --cache-to type=local,ref=${REGISTRY}/devcontainers/develop-base,mode=max \
--cache-from type=local,ref=${REGISTRY}/devcontainers/develop-base && \ --cache-from type=local,ref=${REGISTRY}/devcontainers/develop-base && \
docker push ${REGISTRY}/devcontainers/develop-base &&\
popd popd
pushd universal-base pushd universal-base
npx devcontainer build \ npx devcontainer build \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64,linux/arm64 \
--image-name ${REGISTRY}/devcontainers/universal-base \ --image-name ${REGISTRY}/devcontainers/universal-base --push \
--cache-to type=local,dest=${HOME}/docker-buildcache/devcontainers/universal-base,mode=max \ --cache-to type=local,dest=${HOME}/docker-buildcache/devcontainers/universal-base,mode=max \
--cache-from type=local,src=${HOME}/docker-buildcache/devcontainers/universal-base && \ --cache-from type=local,src=${HOME}/docker-buildcache/devcontainers/universal-base && \
docker push ${REGISTRY}/devcontainers/universal-base &&\
popd popd