doipjs/.drone.yml

101 lines
1.6 KiB
YAML
Raw Normal View History

2022-02-25 13:09:48 -07:00
---
kind: pipeline
2022-02-25 14:10:11 -07:00
name: test
2022-02-25 13:09:48 -07:00
steps:
2022-02-25 14:10:11 -07:00
- name: run tests
image: node
commands:
- yarn
- yarn run prepare
- yarn run test
trigger:
event:
- push
- pull_request
- tag
---
kind: pipeline
name: publish-npm
steps:
2022-09-21 12:09:40 -06:00
- name: prepare
image: node
commands:
- yarn
- yarn run prepare
2022-02-25 14:10:11 -07:00
- name: publish on npm
image: plugins/npm
settings:
username: yarmo_eu
2022-09-20 14:07:46 -06:00
password:
2022-02-25 14:10:11 -07:00
from_secret: npm_token
email:
from_secret: npm_email
2022-09-20 14:07:46 -06:00
depends_on:
- test
2022-02-25 14:10:11 -07:00
trigger:
event:
- tag
---
kind: pipeline
name: publish-docker-latest
steps:
- name: publish latest proxy container
2022-02-25 13:09:48 -07:00
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
dockerfile: docker/proxy/Dockerfile
repo: keyoxide/doip-proxy
2022-02-25 14:10:11 -07:00
tags: latest
2022-02-25 13:09:48 -07:00
- 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
2022-09-20 14:07:46 -06:00
depends_on:
- test
2022-02-25 13:09:48 -07:00
trigger:
event:
- tag
---
kind: pipeline
2022-02-25 14:10:11 -07:00
name: publish-docker-dev
2022-02-25 13:09:48 -07:00
steps:
- 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
2022-02-25 14:10:11 -07:00
depends_on:
- test
2022-02-25 13:09:48 -07:00
trigger:
2022-09-20 14:07:46 -06:00
branch:
- main
2022-02-25 13:09:48 -07:00
event:
2022-02-25 14:10:11 -07:00
- push