not building for pis anymore

This commit is contained in:
Scott Hatlen
2025-11-05 09:13:03 -08:00
parent e3941089e1
commit d6ac68f7d3
2 changed files with 54 additions and 2 deletions

52
.woodpecker.yaml Normal file
View File

@@ -0,0 +1,52 @@
when:
event: push
branch: main
steps:
- name: build-and-push-backend
image: woodpeckerci/plugin-docker-buildx:4.2.0
privileged: true
settings:
repo: harbor.scottyah.com/bestofpb/pb-backend
dockerfile: backend/Dockerfile
context: backend
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: build-and-push-frontend
image: woodpeckerci/plugin-docker-buildx:4.2.0
privileged: true
settings:
repo: harbor.scottyah.com/bestofpb/pb-frontend
dockerfile: frontend/Dockerfile
context: frontend
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:latest
backend_options:
kubernetes:
serviceAccountName: woodpecker-deploy
commands:
- kubectl apply -f k8s.yaml -n bestofpb
- kubectl rollout restart deployment/pb-backend -n bestofpb
- kubectl rollout restart deployment/pb-frontend -n bestofpb
- kubectl rollout status deployment/pb-backend -n bestofpb
- kubectl rollout status deployment/pb-frontend -n bestofpb