代码拉取完成,页面将自动刷新
sudo: required
dist: bionic
services:
- docker
branches:
only:
- master
before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- sudo apt update && sudo apt install -y git
jobs:
include:
- stage: "Build ERPNext Documentation Docker Images"
name: "ERPNext Documentation Worker [Latest]"
script:
- docker build -t frappe/erpnext-docs-worker:latest -f .deploy/build/erpnext-docs-worker/Dockerfile .
- docker tag frappe/erpnext-docs-worker frappe/erpnext-docs-worker:develop
- docker tag frappe/erpnext-docs-worker frappe/erpnext-docs-worker:edge
- docker push frappe/erpnext-docs-worker:latest
- docker push frappe/erpnext-docs-worker:develop
- docker push frappe/erpnext-docs-worker:edge
- name: "ERPNext Documentation NGINX [Latest]"
script:
- docker build -t frappe/erpnext-docs-nginx:latest -f .deploy/build/erpnext-docs-nginx/Dockerfile .
- docker tag frappe/erpnext-docs-nginx frappe/erpnext-docs-nginx:develop
- docker tag frappe/erpnext-docs-nginx frappe/erpnext-docs-nginx:edge
- docker push frappe/erpnext-docs-nginx:latest
- docker push frappe/erpnext-docs-nginx:develop
- docker push frappe/erpnext-docs-nginx:edge
- stage: "Deploy ERPNext Documentation"
git:
clone: false
script:
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl;
chmod +x ./kubectl;
sudo mv ./kubectl /usr/local/bin/kubectl
- mkdir ${HOME}/.kube
- echo "$KUBE_CONFIG" | base64 --decode > ${HOME}/.kube/config
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- helm repo add frappe https://helm.erpnext.com
- helm repo update
- |
for deploy in $(kubectl get -n erpnext deployments --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')
do
kubectl rollout restart deployments/$deploy -n erpnext
done
- >
helm upgrade frappe-bench-stable --namespace erpnext frappe/erpnext
--set mariadbHost=mariadb.mariadb.svc.cluster.local
--set persistence.storageClass=nfs
--set nginxImage.repository=frappe/erpnext-docs-nginx
--set nginxImage.tag=develop
--set nginxImage.pullPolicy=Always
--set pythonImage.repository=frappe/erpnext-docs-worker
--set pythonImage.tag=develop
--set pythonImage.pullPolicy=Always
--set migrateJob.enable=true
- helm version
- kubectl version --short
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。