Refactor Woodpecker CI pipeline to use buildx plugin correctly
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Scott Hatlen
2025-10-20 20:51:07 -07:00
parent efbc011ac7
commit c0cbf0b43a
2 changed files with 14 additions and 10 deletions

View File

@@ -3,16 +3,19 @@ when:
branch: main branch: main
steps: steps:
- name: build - name: build-and-push
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx:4.2.0
privileged: true
settings: settings:
registry: harbor.scottyah.com
repo: harbor.scottyah.com/scottyah/blog repo: harbor.scottyah.com/scottyah/blog
tags: latest
dockerfile: Dockerfile dockerfile: Dockerfile
context: . context: .
platforms: linux/amd64 platforms: linux/amd64
insecure: true tags:
- latest
- ${CI_COMMIT_SHA:0:8}
logins:
- registry: https://harbor.scottyah.com
username: username:
from_secret: harbor_username from_secret: harbor_username
password: password:
@@ -22,6 +25,7 @@ steps:
image: bitnami/kubectl:latest image: bitnami/kubectl:latest
commands: commands:
- kubectl apply -f k8s.yaml -n blog - kubectl apply -f k8s.yaml -n blog
- kubectl rollout restart deployment/blog-dep -n blog
- kubectl rollout status deployment/blog-dep -n blog - kubectl rollout status deployment/blog-dep -n blog
environment: environment:
KUBECONFIG: KUBECONFIG:

View File

@@ -50,7 +50,7 @@ spec:
tls: tls:
- hosts: - hosts:
- scottyah.com - scottyah.com
secretName: blog-tls-cert secretName: scottyah-tls
rules: rules:
- host: scottyah.com - host: scottyah.com
http: http: