kind: pipeline 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: - 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: bucket: home-app region: us-ashburn-02 acl: public-read endpoint: https://storage.186526.xyz access_key: from_secret: s3_access_key secret_key: from_secret: s3_secret_key source: dist/**/* target: /dist path_style: true - name: docker image: plugins/docker failure: ignore settings: username: from_secret: docker_username 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 failure: ignore settings: template: ./deploy.yaml ca: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJlRENDQVIyZ0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQWpNU0V3SHdZRFZRUUREQmhyTTNNdGMyVnkKZG1WeUxXTmhRREUyTXpZeU9ERTJOamd3SGhjTk1qRXhNVEEzTVRBME1UQTRXaGNOTXpFeE1UQTFNVEEwTVRBNApXakFqTVNFd0h3WURWUVFEREJock0zTXRjMlZ5ZG1WeUxXTmhRREUyTXpZeU9ERTJOamd3V1RBVEJnY3Foa2pPClBRSUJCZ2dxaGtqT1BRTUJCd05DQUFUc043OEFSNnpTMUMwdlR3UElxdnpQdmFrblYrT09XV0V1YmlMOE1KSVgKbGl5a0NtQU56blVDbEJVaG1saU1Zb3BmM0dLSWpYR0x3VHJjVEFETzlmNXRvMEl3UURBT0JnTlZIUThCQWY4RQpCQU1DQXFRd0R3WURWUjBUQVFIL0JBVXdBd0VCL3pBZEJnTlZIUTRFRmdRVXVTL29pL3RGckR5Sm1VRUxIL05YCmg3SEFURDh3Q2dZSUtvWkl6ajBFQXdJRFNRQXdSZ0loQUxrQVliczdBZDBGSjYwSFJ1QlNmbjI1VnlySUxpZXQKUTdwVHlSOHpnLzVvQWlFQStuTWd2OE5GMHJncFJFOEtiQkhoVXlmL3p6VnBmNFpiWlEzaEs1NjJpWDQ9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K server: https://10.0.0.86:6443 token: from_secret: kubernetes_token - name: notification image: appleboy/drone-telegram settings: token: from_secret: telegram_bot_token to: real186526 volumes: - name: cache host: path: /tmp/drone/cache