Update cd build scripts

This commit is contained in:
Garrett Mills 2022-07-18 22:36:35 -05:00
parent 241486fc4f
commit 1b4ffeae2b

View File

@ -9,8 +9,8 @@
"lint": "eslint . --ext .ts", "lint": "eslint . --ext .ts",
"lint:fix": "eslint --fix . --ext .ts", "lint:fix": "eslint --fix . --ext .ts",
"preview": "vite preview", "preview": "vite preview",
"cd:build": "pnpm run build && docker image build . -t glmdev/mathy", "cd:build": "pnpm run build && docker image build . -t ${DOCKER_REGISTRY}:glmdev/mathy",
"cd:push": "docker push glmdev/mathy", "cd:push": "docker push ${DOCKER_REGISTRY}:glmdev/mathy",
"cd:deploy": "kubectl apply -f deploy/deploy.yaml", "cd:deploy": "kubectl apply -f deploy/deploy.yaml",
"cd:rollout": "kubectl rollout restart deployment/mathy", "cd:rollout": "kubectl rollout restart deployment/mathy",
"cd": "pnpm run cd:build && pnpm run cd:push && pnpm run cd:rollout" "cd": "pnpm run cd:build && pnpm run cd:push && pnpm run cd:rollout"