代码拉取完成,页面将自动刷新
同步操作将从 KodeRover/zadig-portal 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# New Makefile for multi-architecture
# WARNING:
# This makefile used docker buildx to build multi-arch image
# Please make sure you have the right version of docker.
.PHONY: all
## This Makefile should be used with zadig workflow to inject multiple build parameters.
IMAGE_REPOSITORY = koderover.tencentcloudcr.com/koderover-public
VERSION ?= $(shell date +'%Y%m%d%H%M%S')
VERSION := $(VERSION)
BUILD_TIME ?= $(shell date +%s)
BUILD_TIME := $(BUILD_TIME)
IMAGE ?= ${IMAGE_REPOSITORY}/zadig-portal:${VERSION}
prereq:
@docker buildx create --node=multiarch-frontend --use --platform=linux/amd64,linux/arm64
@sed -i 's/$${VERSION}/${VERSION}/g' config/prod.env.js
@sed -i 's/$${BUILD_TIME}/${BUILD_TIME}/g' config/prod.env.js
@sed -i 's/$${COMMIT_ID}/${zadig_portal_COMMIT_ID}/g' config/prod.env.js
@sed -i 's/$${BRANCH}/${zadig_portal_BRANCH}/g' config/prod.env.js
@sed -i 's/$${PR}/${zadig_portal_PR}/g' config/prod.env.js
@sed -i 's/$${TAG}/${zadig_portal_TAG}/g' config/prod.env.js
@cat config/prod.env.js
all: prereq
all:
@yarn install
@yarn run build
@docker buildx build -t ${IMAGE} --platform linux/amd64,linux/arm64 -f Dockerfile --build-arg BRANCH=${zadig_portal_BRANCH} --build-arg PR=${zadig_portal_PR} --build-arg TAG=${zadig_portal_TAG} --build-arg COMMIT_ID=${zadig_portal_COMMIT_ID} --build-arg BUILD_TIME=${BUILD_TIME} --build-arg BUILD_URL=${BUILD_URL} --push .
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。