mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2025-01-10 06:39:27 -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
|
kind: pipeline
|
||||||
name: release-stable-version
|
name: test
|
||||||
|
|
||||||
steps:
|
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
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
|
@ -12,7 +51,7 @@ steps:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
dockerfile: docker/proxy/Dockerfile
|
dockerfile: docker/proxy/Dockerfile
|
||||||
repo: keyoxide/doip-proxy
|
repo: keyoxide/doip-proxy
|
||||||
tags: stable
|
tags: latest
|
||||||
- name: build tag proxy container
|
- name: build tag proxy container
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
@ -23,22 +62,17 @@ steps:
|
||||||
dockerfile: docker/proxy/Dockerfile
|
dockerfile: docker/proxy/Dockerfile
|
||||||
repo: keyoxide/doip-proxy
|
repo: keyoxide/doip-proxy
|
||||||
auto_tag: true
|
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:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- test
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: release-dev-version
|
name: publish-docker-dev
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: run tests
|
- name: run tests
|
||||||
|
@ -58,24 +92,9 @@ steps:
|
||||||
repo: keyoxide/doip-proxy
|
repo: keyoxide/doip-proxy
|
||||||
tags: dev
|
tags: dev
|
||||||
|
|
||||||
trigger:
|
depends_on:
|
||||||
branch:
|
- test
|
||||||
- main
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
name: test-pr
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: run tests
|
|
||||||
image: node
|
|
||||||
commands:
|
|
||||||
- yarn
|
|
||||||
- yarn run prepare
|
|
||||||
- yarn run test
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- pull_request
|
- push
|
Loading…
Reference in a new issue