mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Fix drone config
This commit is contained in:
parent
6447d5a43f
commit
0b05c74082
1 changed files with 49 additions and 30 deletions
79
.drone.yml
79
.drone.yml
|
@ -1,9 +1,48 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: release-stable-version
|
||||
name: test
|
||||
|
||||
steps:
|
||||
- name: build stable proxy container
|
||||
- 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:
|
||||
- name: publish on npm
|
||||
image: plugins/npm
|
||||
settings:
|
||||
username: yarmo_eu
|
||||
token:
|
||||
from_secret: npm_token
|
||||
email:
|
||||
from_secret: npm_email
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: publish-docker-latest
|
||||
|
||||
steps:
|
||||
- name: publish latest proxy container
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
|
@ -12,7 +51,7 @@ steps:
|
|||
from_secret: docker_password
|
||||
dockerfile: docker/proxy/Dockerfile
|
||||
repo: keyoxide/doip-proxy
|
||||
tags: stable
|
||||
tags: latest
|
||||
- name: build tag proxy container
|
||||
image: plugins/docker
|
||||
settings:
|
||||
|
@ -23,22 +62,17 @@ steps:
|
|||
dockerfile: docker/proxy/Dockerfile
|
||||
repo: keyoxide/doip-proxy
|
||||
auto_tag: true
|
||||
- name: publish on npm
|
||||
image: plugins/npm
|
||||
settings:
|
||||
username: yarmo_eu
|
||||
password:
|
||||
from_secret: npm_password
|
||||
email:
|
||||
from_secret: npm_email
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: release-dev-version
|
||||
name: publish-docker-dev
|
||||
|
||||
steps:
|
||||
- name: run tests
|
||||
|
@ -58,24 +92,9 @@ steps:
|
|||
repo: keyoxide/doip-proxy
|
||||
tags: dev
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: test-pr
|
||||
|
||||
steps:
|
||||
- name: run tests
|
||||
image: node
|
||||
commands:
|
||||
- yarn
|
||||
- yarn run prepare
|
||||
- yarn run test
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
Loading…
Reference in a new issue