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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- ---
- kind: pipeline
- type: kubernetes
- name: Checks
-
- platform:
- os: linux
- arch: amd64
-
- steps:
- - name: Print versions
- image: node
- commands:
- - yarn -v
- - node -v
- - openssl version
-
- - name: Linting
- image: node
- commands:
- - yarn
- - yarn lint
-
- - name: Smoke Test
- image: node
- commands:
- - yarn build
-
- - name: Build example
- image: node
- commands:
- - cd example
- - yarn
- - yarn build
-
- ---
- kind: pipeline
- type: kubernetes
- name: Release
-
- platform:
- os: linux
- arch: amd64
-
- steps:
- - name: Semantic Release
- image: node
- commands:
- - export GIT_AUTHOR_NAME=$DRONE_COMMIT_AUTHOR_NAME
- - export GIT_AUTHOR_EMAIL=$DRONE_COMMIT_AUTHOR_EMAIL
- - yarn
- - yarn global add semantic-release
- - yarn build
- - mkdir ~/.ssh
- - ssh-keyscan git.dany.dev > ~/.ssh/known_hosts
- - openssl aes-256-cbc -d -K $DEPLOY_KEY -iv $DEPLOY_IV -in .deploy.enc -out /tmp/key
- - chmod 600 /tmp/key
- - eval "$(ssh-agent -s)"
- - ssh-add /tmp/key </dev/null
- - semantic-release
- environment:
- NPM_TOKEN:
- from_secret: NPM_TOKEN
- GITEA_TOKEN:
- from_secret: GITEA_TOKEN
- DEPLOY_KEY:
- from_secret: DEPLOY_KEY
- DEPLOY_IV:
- from_secret: DEPLOY_IV
- GIT_COMMITTER_EMAIL: robot@dany.dev
- - name: Docker
- image: plugins/docker:19
- settings:
- username: robot$teenyui
- password:
- from_secret: REGISTRY_PASSWORD
- repo: harbor.dany.dev/teenyui/teenyui
- registry: harbor.dany.dev
-
- trigger:
- branch:
- - master
- event:
- - push
-
- depends_on:
- - Checks
|