123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- .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.2.5
- checkDev:
- git checkout dev
- build:
- yarn build
- commit:
- git add . && \
- git commit --no-verify -m "fix: change prize enroll"
- 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 add . && \
- git commit --no-verify -m "fix: build" && \
- git push && \
- git checkout dev && \
- git merge master && \
- git push
- # 计算总时间
- 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
|