33 lines
799 B
YAML
33 lines
799 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
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
cache: true
|
|
cache_repo: harbor.scottyah.com/scottyah/blog-cache
|
|
skip_tls_verify: true
|
|
reproducible: true
|
|
cleanup: true
|
|
verbosity: info
|
|
skip_unused_stages: 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 |