Tiny UI library for Preact https://git.dany.dev/dsluijk/teenyui
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

95 lines
1.9 KiB

  1. ---
  2. kind: pipeline
  3. type: kubernetes
  4. name: Checks
  5. platform:
  6. os: linux
  7. arch: amd64
  8. steps:
  9. - name: Print versions
  10. image: node
  11. commands:
  12. - yarn -v
  13. - node -v
  14. - openssl version
  15. - name: Linting
  16. image: node
  17. commands:
  18. - yarn
  19. - yarn lint
  20. - name: Smoke Test
  21. image: node
  22. commands:
  23. - yarn build
  24. - name: Build example
  25. image: node
  26. commands:
  27. - cd example
  28. - yarn
  29. - yarn build
  30. ---
  31. kind: pipeline
  32. type: kubernetes
  33. name: Release
  34. platform:
  35. os: linux
  36. arch: amd64
  37. steps:
  38. - name: Semantic Release
  39. image: node
  40. commands:
  41. - export GIT_AUTHOR_NAME=$DRONE_COMMIT_AUTHOR_NAME
  42. - export GIT_AUTHOR_EMAIL=$DRONE_COMMIT_AUTHOR_EMAIL
  43. - yarn
  44. - yarn global add semantic-release
  45. - yarn build
  46. - curl -fsSL -o /tmp/get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
  47. - chmod 700 /tmp/get_helm.sh
  48. - /tmp/get_helm.sh
  49. - mkdir ~/.ssh
  50. - ssh-keyscan git.dany.dev > ~/.ssh/known_hosts
  51. - openssl aes-256-cbc -d -K $DEPLOY_KEY -iv $DEPLOY_IV -in .deploy.enc -out /tmp/key
  52. - chmod 600 /tmp/key
  53. - eval "$(ssh-agent -s)"
  54. - ssh-add /tmp/key </dev/null
  55. - semantic-release
  56. environment:
  57. NPM_TOKEN:
  58. from_secret: NPM_TOKEN
  59. GITEA_TOKEN:
  60. from_secret: GITEA_TOKEN
  61. DEPLOY_KEY:
  62. from_secret: DEPLOY_KEY
  63. DEPLOY_IV:
  64. from_secret: DEPLOY_IV
  65. GIT_COMMITTER_EMAIL: robot@dany.dev
  66. REGISTRY_USERNAME:
  67. from_secret: REGISTRY_USERNAME
  68. REGISTRY_PASSWORD:
  69. from_secret: REGISTRY_PASSWORD
  70. - name: Docker
  71. image: plugins/docker:19
  72. settings:
  73. username: robot$teenyui
  74. password:
  75. from_secret: REGISTRY_PASSWORD
  76. repo: harbor.dany.dev/teenyui/teenyui
  77. registry: harbor.dany.dev
  78. trigger:
  79. branch:
  80. - master
  81. event:
  82. - push
  83. depends_on:
  84. - Checks