doipjs/.drone.yml

81 lines
1.5 KiB
YAML
Raw Normal View History

2021-04-09 06:11:39 -06:00
---
kind: pipeline
2021-06-03 01:50:05 -06:00
name: release-stable-version
2021-04-09 06:11:39 -06:00
steps:
2021-04-19 03:44:30 -06:00
- name: build stable proxy container
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: docker/proxy/Dockerfile
repo: keyoxide/doip-proxy
tags: stable
- name: build tag proxy container
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: docker/proxy/Dockerfile
repo: keyoxide/doip-proxy
auto_tag: true
2021-06-03 01:50:05 -06:00
- name: publish on npm
image: plugins/npm
settings:
username: yarmo_eu
password:
from_secret: npm_password
email:
from_secret: npm_email
2021-04-09 06:11:39 -06:00
trigger:
2021-04-19 03:44:30 -06:00
event:
- tag
2021-04-09 06:11:39 -06:00
---
kind: pipeline
2021-06-03 01:50:05 -06:00
name: release-dev-version
2021-04-09 06:11:39 -06:00
steps:
2021-07-09 15:58:55 -06:00
- name: run tests
image: node
commands:
2021-07-09 16:01:15 -06:00
- yarn
2021-07-09 15:58:55 -06:00
- yarn run prepare
- yarn run test
2021-04-19 03:44:30 -06:00
- name: build dev proxy container
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: docker/proxy/Dockerfile
repo: keyoxide/doip-proxy
tags: dev
2021-04-09 06:11:39 -06:00
trigger:
2021-04-19 03:44:30 -06:00
branch:
- main
event:
- push
2021-07-09 16:04:45 -06:00
---
kind: pipeline
name: test-pr
steps:
- name: run tests
image: node
commands:
- yarn
- yarn run prepare
- yarn run test
trigger:
event:
- pull_request