Compare commits
	
		
			8 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b8cd7f01aa | |||
| e813dd0320 | |||
| 18f0fb1472 | |||
| 6d5813baa9 | |||
| 165e36a166 | |||
| d6b4a1776c | |||
| bee8c9df96 | |||
| 8189fd9c0e | 
							
								
								
									
										33
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -12,6 +12,13 @@ get:
 | 
			
		||||
  path: odit-git-bot
 | 
			
		||||
  name: sshkey
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
kind: secret
 | 
			
		||||
name: ci_token
 | 
			
		||||
get:
 | 
			
		||||
  path: odit-ci-bot
 | 
			
		||||
  name: apikey
 | 
			
		||||
 | 
			
		||||
---
 | 
			
		||||
kind: pipeline
 | 
			
		||||
type: kubernetes
 | 
			
		||||
@@ -31,6 +38,7 @@ steps:
 | 
			
		||||
    depends_on: ["run electron packager"]
 | 
			
		||||
    image: plugins/gitea-release
 | 
			
		||||
    settings:
 | 
			
		||||
      title: Release ${DRONE_TAG}
 | 
			
		||||
      api_key:
 | 
			
		||||
        from_secret: gitea_token
 | 
			
		||||
      base_url: https://git.odit.services
 | 
			
		||||
@@ -42,6 +50,13 @@ steps:
 | 
			
		||||
        - sha512
 | 
			
		||||
        - adler32
 | 
			
		||||
        - crc32
 | 
			
		||||
  - name: trigger live build
 | 
			
		||||
    depends_on: ["gitea_release"]
 | 
			
		||||
    image: idcooldi/drone-webhook
 | 
			
		||||
    settings:
 | 
			
		||||
      urls: https://ci.odit.services/api/repos/lfk/scanclient-live/builds?SOURCE_TAG=${DRONE_TAG}
 | 
			
		||||
      bearer:
 | 
			
		||||
        from_secret: ci_token
 | 
			
		||||
trigger:
 | 
			
		||||
  event:
 | 
			
		||||
    - tag
 | 
			
		||||
@@ -56,11 +71,21 @@ steps:
 | 
			
		||||
    image: node:alpine
 | 
			
		||||
    commands:
 | 
			
		||||
      - npm --no-git-tag-version version ${SOURCE_TAG}
 | 
			
		||||
  - name: commit & tag
 | 
			
		||||
  - name: push new version to repo
 | 
			
		||||
    image: appleboy/drone-git-push
 | 
			
		||||
    settings:
 | 
			
		||||
      commit: true
 | 
			
		||||
      commit_message: 🚀New package version ${SOURCE_TAG} [CI SKIP]
 | 
			
		||||
      author_email: bot@odit.services
 | 
			
		||||
      followtags: false
 | 
			
		||||
      branch: main
 | 
			
		||||
      remote: git@git.odit.services:lfk/scanclient-electron.git
 | 
			
		||||
      skip_verify: true
 | 
			
		||||
      ssh_key:
 | 
			
		||||
        from_secret: git_ssh
 | 
			
		||||
  - name: tag
 | 
			
		||||
    image: alpine/git
 | 
			
		||||
    commands:
 | 
			
		||||
      - git add .
 | 
			
		||||
      - git commit -m "🚀New package version ${SOURCE_TAG} [CI SKIP]"
 | 
			
		||||
      - git tag ${SOURCE_TAG} -a -m "Release ${SOURCE_TAG}"
 | 
			
		||||
  - name: push to repo
 | 
			
		||||
    image: appleboy/drone-git-push
 | 
			
		||||
@@ -68,6 +93,7 @@ steps:
 | 
			
		||||
      commit: false
 | 
			
		||||
      author_email: bot@odit.services
 | 
			
		||||
      followtags: true
 | 
			
		||||
      branch: main
 | 
			
		||||
      remote: git@git.odit.services:lfk/scanclient-electron.git
 | 
			
		||||
      skip_verify: true
 | 
			
		||||
      ssh_key:
 | 
			
		||||
@@ -76,5 +102,6 @@ trigger:
 | 
			
		||||
  event:
 | 
			
		||||
    exclude:
 | 
			
		||||
    - push
 | 
			
		||||
    - tag
 | 
			
		||||
  include:
 | 
			
		||||
    - custom
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "@lfk/scanclient-electron",
 | 
			
		||||
	"version": "0.0.6",
 | 
			
		||||
	"version": "0.2.0",
 | 
			
		||||
	"description": "minimal electron application",
 | 
			
		||||
	"main": "main.js",
 | 
			
		||||
	"scripts": {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user