feat(ci)!: Switch to woodpecker
This commit is contained in:
		@@ -1,64 +1,41 @@
 | 
				
			|||||||
---
 | 
					steps:
 | 
				
			||||||
kind: secret
 | 
					  - name: checkout backend
 | 
				
			||||||
name: git_ssh
 | 
					    image: registry.odit.services/hub/alpine/git
 | 
				
			||||||
get:
 | 
					    commands:
 | 
				
			||||||
  path: odit-git-bot
 | 
					      - git clone https://git.odit.services/lfk/backend backend
 | 
				
			||||||
  name: sshkey
 | 
					      - cd backend
 | 
				
			||||||
 | 
					      - git checkout dev
 | 
				
			||||||
---
 | 
					  - name: run openapi export
 | 
				
			||||||
kind: secret
 | 
					    image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
 | 
				
			||||||
name: npm_token
 | 
					    commands:
 | 
				
			||||||
get:
 | 
					      - cd backend
 | 
				
			||||||
  path: niggl-npm-key
 | 
					      - yarn
 | 
				
			||||||
  name: npmkey
 | 
					      - yarn openapi:export
 | 
				
			||||||
 | 
					      - mv ./openapi.json ../openapi.json
 | 
				
			||||||
---
 | 
					      - cd ..
 | 
				
			||||||
kind: pipeline
 | 
					      - rm -rf backend
 | 
				
			||||||
type: kubernetes
 | 
					  - name: run lib build
 | 
				
			||||||
name: build:tag
 | 
					    image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
 | 
				
			||||||
 | 
					    commands:
 | 
				
			||||||
steps:
 | 
					      - yarn
 | 
				
			||||||
  - name: checkout backend
 | 
					      - yarn build
 | 
				
			||||||
    image: registry.odit.services/hub/alpine/git
 | 
					      - npm --no-git-tag-version version ${SOURCE_TAG}
 | 
				
			||||||
    commands:
 | 
					  - name: push to repo
 | 
				
			||||||
      - git clone https://git.odit.services/lfk/backend backend
 | 
					    image: appleboy/drone-git-push
 | 
				
			||||||
      - cd backend
 | 
					    settings:
 | 
				
			||||||
      - git checkout dev
 | 
					      branch: main
 | 
				
			||||||
  - name: run openapi export
 | 
					      commit: true
 | 
				
			||||||
    image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
 | 
					      commit_message: 🚀New lib version ${SOURCE_TAG} [CI SKIP]
 | 
				
			||||||
    commands:
 | 
					      author_email: bot@odit.services
 | 
				
			||||||
      - cd backend
 | 
					      remote: git@git.odit.services:lfk/lfk-client-js.git
 | 
				
			||||||
      - yarn
 | 
					      ssh_key:
 | 
				
			||||||
      - yarn openapi:export
 | 
					        from_secret: odit-git-bot-sshkey
 | 
				
			||||||
      - mv ./openapi.json ../openapi.json
 | 
					  - name: npm
 | 
				
			||||||
      - cd ..
 | 
					    image: plugins/npm
 | 
				
			||||||
      - rm -rf backend
 | 
					    settings:
 | 
				
			||||||
  - name: run lib build
 | 
					      token:
 | 
				
			||||||
    image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
 | 
					        from_secret: niggl-npm-key
 | 
				
			||||||
    commands:
 | 
					      email: info@odit.services
 | 
				
			||||||
      - yarn
 | 
					when:
 | 
				
			||||||
      - yarn build
 | 
					  event:
 | 
				
			||||||
      - npm --no-git-tag-version version ${SOURCE_TAG}
 | 
					    - manual
 | 
				
			||||||
  - name: push to repo
 | 
					 | 
				
			||||||
    image: appleboy/drone-git-push
 | 
					 | 
				
			||||||
    settings:
 | 
					 | 
				
			||||||
      branch: main
 | 
					 | 
				
			||||||
      commit: true
 | 
					 | 
				
			||||||
      commit_message: 🚀New lib version ${SOURCE_TAG} [CI SKIP]
 | 
					 | 
				
			||||||
      author_email: bot@odit.services
 | 
					 | 
				
			||||||
      remote: git@git.odit.services:lfk/lfk-client-js.git
 | 
					 | 
				
			||||||
      ssh_key:
 | 
					 | 
				
			||||||
        from_secret: git_ssh
 | 
					 | 
				
			||||||
  - name: npm
 | 
					 | 
				
			||||||
    image: plugins/npm
 | 
					 | 
				
			||||||
    settings:
 | 
					 | 
				
			||||||
      token:
 | 
					 | 
				
			||||||
        from_secret: npm_token
 | 
					 | 
				
			||||||
      email: info@odit.services
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
trigger:
 | 
					 | 
				
			||||||
  event:
 | 
					 | 
				
			||||||
    exclude:
 | 
					 | 
				
			||||||
    - push
 | 
					 | 
				
			||||||
  include:
 | 
					 | 
				
			||||||
    - custom
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user