feat(ci) Setting up drone ci + fix package [test] (#1)
Reviewed-on: #1 Co-authored-by: EndMove <superjeremi1302@gmail.com> Co-committed-by: EndMove <superjeremi1302@gmail.com>
This commit is contained in:
parent
d6413f3f88
commit
c1329ee0ea
33
.drone.yml
33
.drone.yml
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: npm-publish-snapshot
|
name: snapshot
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
@ -29,7 +29,27 @@ steps:
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: npm-publish-release
|
name: checkup
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- promote
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: package-checkup
|
||||||
|
image: node:18
|
||||||
|
commands:
|
||||||
|
- export DATA=$(node -p "require('./package.json')") || echo "No Data Found"
|
||||||
|
- echo "Package Data :"
|
||||||
|
- echo $DATA
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: release
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
@ -37,7 +57,10 @@ trigger:
|
|||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
environement:
|
depends_on:
|
||||||
|
- checkup
|
||||||
|
|
||||||
|
environment:
|
||||||
CHANGE: ${CHANGE}
|
CHANGE: ${CHANGE}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -60,10 +83,10 @@ steps:
|
|||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_api_key
|
from_secret: gitea_token
|
||||||
base_url: https://git.endmove.eu
|
base_url: https://git.endmove.eu
|
||||||
title: Release ${VERSION}
|
title: Release ${VERSION}
|
||||||
notes: 'See the commits diff for more informations'
|
notes: "See the commits diff for more information's"
|
||||||
checksum:
|
checksum:
|
||||||
- md5
|
- md5
|
||||||
- sha1
|
- sha1
|
||||||
|
Loading…
Reference in New Issue
Block a user