mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
Revert to drone CI
This commit is contained in:
parent
81749c8f12
commit
41c41236c7
5 changed files with 82 additions and 64 deletions
81
.drone.yml
Normal file
81
.drone.yml
Normal file
|
@ -0,0 +1,81 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: release-stable-version
|
||||
|
||||
steps:
|
||||
- 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
|
||||
- name: publish on npm
|
||||
image: plugins/npm
|
||||
settings:
|
||||
username: yarmo_eu
|
||||
password:
|
||||
from_secret: npm_password
|
||||
email:
|
||||
from_secret: npm_email
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: release-dev-version
|
||||
|
||||
steps:
|
||||
- name: run tests
|
||||
image: node
|
||||
commands:
|
||||
- yarn
|
||||
- yarn run prepare
|
||||
- yarn run test
|
||||
- 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
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: test-pr
|
||||
|
||||
steps:
|
||||
- name: run tests
|
||||
image: node
|
||||
commands:
|
||||
- yarn
|
||||
- yarn run prepare
|
||||
- yarn run test
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
|
@ -12,11 +12,11 @@ ignore
|
|||
docs
|
||||
examples
|
||||
\.husky
|
||||
\.woodpecker
|
||||
|
||||
package.json
|
||||
yarn.lock
|
||||
\.editorconfig
|
||||
\.gitignore
|
||||
\.licenseignore
|
||||
\.drone.yml
|
||||
Dockerfile
|
|
@ -1,40 +0,0 @@
|
|||
pipeline:
|
||||
dev:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dockerfile: docker/proxy/Dockerfile
|
||||
repo: keyoxide/doip-proxy
|
||||
tags: dev
|
||||
when:
|
||||
event: push
|
||||
stable:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
dockerfile: docker/proxy/Dockerfile
|
||||
repo: keyoxide/doip-proxy
|
||||
tags: stable
|
||||
when:
|
||||
event: tag
|
||||
tag:
|
||||
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
|
||||
when:
|
||||
event: tag
|
||||
|
||||
depends_on:
|
||||
- test
|
|
@ -1,14 +0,0 @@
|
|||
pipeline:
|
||||
npm:
|
||||
image: plugins/npm
|
||||
settings:
|
||||
username: yarmo_eu
|
||||
password:
|
||||
from_secret: npm_password
|
||||
email:
|
||||
from_secret: npm_email
|
||||
when:
|
||||
event: tag
|
||||
|
||||
depends_on:
|
||||
- test
|
|
@ -1,9 +0,0 @@
|
|||
pipeline:
|
||||
test:
|
||||
image: node
|
||||
commands:
|
||||
- yarn
|
||||
- yarn run prepare
|
||||
- yarn run test
|
||||
when:
|
||||
event: [push, pull_request, tag]
|
Loading…
Reference in a new issue