This commit is contained in:
+39
-7
@@ -1,11 +1,43 @@
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: test
|
||||
name: pr-check
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
steps:
|
||||
- name: test-secret
|
||||
image: alpine
|
||||
settings:
|
||||
token:
|
||||
from_secret: gitea_token
|
||||
- name: build-angular
|
||||
image: node:22-alpine
|
||||
commands:
|
||||
- echo $PLUGIN_TOKEN
|
||||
- npm ci
|
||||
- npm run build
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: deploy
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: build-angular
|
||||
image: node:22-alpine
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run build
|
||||
|
||||
- name: build-and-push
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: gitea.mnky-code.de
|
||||
repo: gitea.mnky-code.de/mnky/ngrx-playground
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
username:
|
||||
from_secret: gitea_username
|
||||
password:
|
||||
from_secret: gitea_password
|
||||
Reference in New Issue
Block a user