This commit is contained in:
30
.woodpecker.yaml
Normal file
30
.woodpecker.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
when:
|
||||
event: push
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: woodpeckerci/plugin-docker-buildx:4.2.0
|
||||
privileged: true
|
||||
settings:
|
||||
repo: harbor.scottyah.com/scottyah/blog
|
||||
dockerfile: Dockerfile
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_SHA:0:8}
|
||||
logins:
|
||||
- registry: https://harbor.scottyah.com
|
||||
username:
|
||||
from_secret: harbor_username
|
||||
password:
|
||||
from_secret: harbor_password
|
||||
|
||||
- name: deploy
|
||||
image: bitnami/kubectl:1.31
|
||||
backend_options:
|
||||
kubernetes:
|
||||
serviceAccountName: woodpecker-deploy
|
||||
commands:
|
||||
- kubectl rollout restart deployment/blog-dep -n blog
|
||||
Reference in New Issue
Block a user