12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- .PHONY: build commit push merge tag docker-build docker-push all checkDev pushDev
- # 记录开始时间
- START_TIME := $(shell powershell -NoProfile -Command "Get-Date -UFormat %%s")
- V_TAG:=v2.1.8
- checkDev:
- git checkout dev
- build:
- yarn build
- commit:
- git add . && \
- git commit --no-verify -m "fix: change evaluate"
- checkPre:
- git checkout pre
- mergePre:
- git checkout pre && \
- git merge dev && \
- git push
- push:
- git push
- merge:
- git checkout master && \
- git merge pre && \
- git push
- tag:
- git checkout master && \
- git tag $(V_TAG) && \
- git push origin --tags
- docker-build:
- docker build -f ./Dockerfile -t registry.yingcaibx.com/tl/admin_web:$(V_TAG) .
- docker-push:
- docker push registry.yingcaibx.com/tl/admin_web:$(V_TAG) && \
- git checkout dev
- # 计算总时间
- total_time:
- powershell -NoProfile -Command "Write-Host 'Total time taken: $((Get-Date -UFormat %%s) - $(START_TIME)) seconds'"
- all: checkDev commit push merge build tag docker-build docker-push total_time
- proToMaster: checkPre merge build commit push tag docker-build docker-push total_time
- pushDev: checkDev commit push
- pushPre: checkPre mergePre push checkDev
|