26 lines
597 B
YAML
26 lines
597 B
YAML
when:
|
|
event: push
|
|
branch: main
|
|
|
|
steps:
|
|
- name: build
|
|
image: woodpeckerci/plugin-kaniko
|
|
settings:
|
|
registry: harbor.scottyah.com
|
|
repo: harbor.scottyah.com/scottyah/blog
|
|
tags: latest
|
|
cache: true
|
|
skip_tls_verify: true
|
|
username:
|
|
from_secret: harbor_username
|
|
password:
|
|
from_secret: harbor_password
|
|
|
|
- name: deploy
|
|
image: bitnami/kubectl:latest
|
|
commands:
|
|
- kubectl apply -f k8s.yaml -n blog
|
|
- kubectl rollout status deployment/blog-dep -n blog
|
|
environment:
|
|
KUBECONFIG:
|
|
from_secret: kubeconfig |