chore: update ci/cd pipelines
ci/woodpecker/push/test Pipeline was successful
Details
ci/woodpecker/push/test Pipeline was successful
Details
This commit is contained in:
parent
1ddcbb66ed
commit
f94fd27432
|
@ -4,31 +4,31 @@ when:
|
|||
|
||||
steps:
|
||||
deploy:
|
||||
image: alpine/k8s:1.26.9
|
||||
image: alpine/k8s:1.27.11
|
||||
secrets:
|
||||
- kubeconfig
|
||||
commands:
|
||||
- "mkdir ~/.kube && echo \"$KUBECONFIG\" > ~/.kube/twhelp"
|
||||
- "cd ./k8s/overlays/prod && kustomize edit set image scripts=gitea.dwysokinski.me/twhelp-packages/scripts:${CI_COMMIT_TAG##v} && cd ../../.."
|
||||
- kustomize build ./k8s/overlays/prod | kubectl --kubeconfig ~/.kube/twhelp apply -n twhelp -f -
|
||||
notify:
|
||||
|
||||
email:
|
||||
image: deblan/woodpecker-email
|
||||
settings:
|
||||
dsn:
|
||||
from_secret: email_dsn
|
||||
from:
|
||||
from_secret: email_from
|
||||
from.name: Woodpecker
|
||||
host:
|
||||
from_secret: email_host
|
||||
username:
|
||||
from_secret: email_username
|
||||
password:
|
||||
from_secret: email_password
|
||||
address:
|
||||
from_secret: email_from_address
|
||||
name: Woodpecker
|
||||
recipients:
|
||||
- notifications@dwysokinski.me
|
||||
- notifications@twhelp.app
|
||||
recipients_only: true
|
||||
subject: "[deploy - {{ build.status }}] {{ repo.owner }}/{{ repo.name }} ({{ build.branch }} - {{ truncate build.commit 8 }})"
|
||||
content:
|
||||
subject:
|
||||
"[deployment - {{ pipeline.status }}] {{ repo.full_name }} ({{ commit.tag }})"
|
||||
when:
|
||||
status: [failure]
|
||||
status: [success, failure]
|
||||
|
||||
depends_on:
|
||||
- docker
|
|
@ -14,20 +14,3 @@ steps:
|
|||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
notify:
|
||||
image: deblan/woodpecker-email
|
||||
settings:
|
||||
from:
|
||||
from_secret: email_from
|
||||
from.name: Woodpecker
|
||||
host:
|
||||
from_secret: email_host
|
||||
username:
|
||||
from_secret: email_username
|
||||
password:
|
||||
from_secret: email_password
|
||||
recipients:
|
||||
- notifications@dwysokinski.me
|
||||
recipients_only: true
|
||||
when:
|
||||
status: [failure]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:20.12-alpine as build-deps
|
||||
FROM --platform=$BUILDPLATFORM node:20.12-alpine as build-deps
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
|
|
Loading…
Reference in New Issue