This commit is contained in:
+5
-11
@@ -4,16 +4,13 @@ name: pr-check
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
steps:
|
||||
- name: build-angular
|
||||
image: node:22-alpine
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run build
|
||||
|
||||
---
|
||||
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: deploy
|
||||
@@ -22,14 +19,12 @@ trigger:
|
||||
- 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:
|
||||
@@ -41,18 +36,17 @@ steps:
|
||||
from_secret: gitea_username
|
||||
password:
|
||||
from_secret: gitea_password
|
||||
|
||||
- name: update-manifest
|
||||
image: alpine/git
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
commands:
|
||||
- git clone https://mnky:$GITEA_TOKEN@gitea.mnky-code.de/mnky/k8s-manifests
|
||||
- cd k8s-manifests
|
||||
- sed -i "s|image:.*ngrx-playground.*|image: gitea.mnky-code.de/mnky/ngrx-playground:${DRONE_COMMIT_SHA:0:8}|" ngrx-playground/deployment.yaml
|
||||
- sed -i "s|image:.*ngrx-playground.*|image: gitea.mnky-code.de/mnky/ngrx-playground:$DRONE_COMMIT_SHA|" ngrx-playground/deployment.yaml
|
||||
- git config user.email "drone@ci"
|
||||
- git config user.name "Drone CI"
|
||||
- git add .
|
||||
- git commit -m "Update image to ${DRONE_COMMIT_SHA:0:8}"
|
||||
- git commit -m "update image"
|
||||
- git push
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: gitea_token
|
||||
Reference in New Issue
Block a user