Update
continuous-integration/drone/push Build encountered an error Details
continuous-integration/drone Build is failing Details

This commit is contained in:
186526 2022-05-03 13:14:12 +08:00
parent fab62a506d
commit bd1d2749ad
Signed by: 186526
GPG Key ID: C7EB1E6B8CC5E51D
1 changed files with 36 additions and 12 deletions

View File

@ -3,13 +3,32 @@ type: docker
name: build-and-deploy
steps:
- name: restore-cache
image: drillster/drone-volume-cache
settings:
restore: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
- name: build
image: node:lts-bullseye
commands:
- rm -rf ./.yarn.lock
- apt-get update -y && apt-get install git -y
- yarn && yarn build
- apt-get update -y && apt-get install git -y
- yarn && yarn build
- name: rebuild-cache
image: drillster/drone-volume-cache
settings:
rebuild: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
- name: upload
image: plugins/s3
settings:
@ -24,30 +43,35 @@ steps:
source: dist/**/*
target: /dist
path_style: true
- name: docker
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
password:
from_secret: docker_password
auto_tag: true
repo: registry.186526.xyz/home-app
registry: registry.186526.xyz
- name: deploy
image: danielgormly/drone-plugin-kube:0.0.1
settings:
template: ./deploy.yaml
ca: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlRENDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUyTXpZeU9ERTJOamd3SGhjTk1qRXhNVEEzTVRBME1UQTRXaGNOTXpFeE1UQTFNVEEwTVRBNApXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUyTXpZeU9ERTJOamd3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFUc043OEFSNnpTMUMwdlR3UElxdnpQdmFrblYrT09XV0V1YmlMOE1KSVgKbGl5a0NtQU56blVDbEJVaG1saU1Zb3BmM0dLSWpYR0x3VHJjVEFETzlmNXRvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVXVTL29pL3RGckR5Sm1VRUxIL05YCmg3SEFURDh3Q2dZSUtvWkl6ajBFQXdJRFNRQXdSZ0loQUxrQVliczdBZDBGSjYwSFJ1QlNmbjI1VnlySUxpZXQKUTdwVHlSOHpnLzVvQWlFQStuTWd2OE5GMHJncFJFOEtiQkhoVXlmL3p6VnBmNFpiWlEzaEs1NjJpWDQ9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://172.23.2.83:6443
server: https://10.0.0.86:6443
token:
from_secret: kubernetes_token
- name: notification
image: appleboy/drone-telegram
settings:
token:
token:
from_secret: telegram_bot_token
to: real186526
to: real186526
volumes:
- name: cache
host:
path: /tmp/drone/cache