chore: update ci/cd pipelines
ci/woodpecker/push/test Pipeline was successful Details

This commit is contained in:
Dawid Wysokiński 2024-04-01 09:21:56 +02:00
parent 1ddcbb66ed
commit f94fd27432
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
3 changed files with 14 additions and 31 deletions

View File

@ -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

View File

@ -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]

View File

@ -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 ./