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.
 
 
 
 
 
 

88 lines
1.6 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. - mkdir ~/.ssh
  47. - ssh-keyscan git.dany.dev > ~/.ssh/known_hosts
  48. - openssl aes-256-cbc -d -K $DEPLOY_KEY -iv $DEPLOY_IV -in .deploy.enc -out /tmp/key
  49. - chmod 600 /tmp/key
  50. - eval "$(ssh-agent -s)"
  51. - ssh-add /tmp/key </dev/null
  52. - semantic-release
  53. environment:
  54. NPM_TOKEN:
  55. from_secret: NPM_TOKEN
  56. GITEA_TOKEN:
  57. from_secret: GITEA_TOKEN
  58. DEPLOY_KEY:
  59. from_secret: DEPLOY_KEY
  60. DEPLOY_IV:
  61. from_secret: DEPLOY_IV
  62. GIT_COMMITTER_EMAIL: robot@dany.dev
  63. - name: Docker
  64. image: plugins/docker:19
  65. settings:
  66. username: robot$teenyui
  67. password:
  68. from_secret: REGISTRY_PASSWORD
  69. repo: harbor.dany.dev/teenyui/teenyui
  70. registry: harbor.dany.dev
  71. trigger:
  72. branch:
  73. - master
  74. event:
  75. - push
  76. depends_on:
  77. - Checks