34 lines
772 B
YAML
34 lines
772 B
YAML
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"
|