18 lines
503 B
YAML
18 lines
503 B
YAML
when:
|
|
event: push
|
|
branch: main
|
|
|
|
steps:
|
|
- name: build
|
|
image: gcr.io/kaniko-project/executor:debug
|
|
commands:
|
|
- /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=harbor.scottyah.com/scottyah/blog:latest --cache=true
|
|
|
|
- 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 |