Add Woodpecker CI pipeline
This commit is contained in:
parent
76bfd5bda7
commit
10b5d26167
1 changed files with 34 additions and 0 deletions
34
.woodpecker.yml
Normal file
34
.woodpecker.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
when:
|
||||
- event: push
|
||||
branch: main
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
attempts: 5
|
||||
backoff: 10s
|
||||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
username: viktorbarzin
|
||||
password:
|
||||
from_secret: dockerhub-token
|
||||
repo: viktorbarzin/claude-memory
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
platforms:
|
||||
- linux/amd64
|
||||
tags:
|
||||
- "${CI_PIPELINE_NUMBER}"
|
||||
- latest
|
||||
|
||||
- name: deploy
|
||||
image: bitnami/kubectl:latest
|
||||
depends_on:
|
||||
- build-and-push
|
||||
commands:
|
||||
- "kubectl rollout restart deployment/claude-memory -n claude-memory"
|
||||
- "kubectl rollout status deployment/claude-memory -n claude-memory --timeout=120s"
|
||||
Loading…
Add table
Add a link
Reference in a new issue