1 Commits

Author SHA1 Message Date
unkinben c3f17c66cf feat: migrate to woodpeckerci
Build / build-8 (pull_request) Successful in 15s
Build / build-9 (pull_request) Successful in 18s
ci/woodpecker/pr/build-almalinux8 Pipeline failed
ci/woodpecker/pr/build-almalinux9 Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline failed
- update build tool for kubernetes auth
- add woodpecker pre-commit and build jobs
2026-03-07 11:34:07 +11:00
2 changed files with 1 additions and 4 deletions
-1
View File
@@ -6,7 +6,6 @@ DISTRO ?= almalinux/el9
# Authentication variables (optional)
# VAULT_ROLE_ID - Use AppRole authentication if set
# VAULT_ROLE - Kubernetes role for service account authentication (default: rpmbuilder)
# VAULT_AUDIENCE - Audience for Kubernetes authentication (default: vault)
# Automatically find all packages with metadata.yaml
PACKAGES := $(shell find $(ROOT_DIR)/rpms -mindepth 1 -maxdepth 1 -type d -exec test -f {}/metadata.yaml \; -print | xargs -n1 basename | sort)
+1 -3
View File
@@ -167,7 +167,6 @@ def get_vault_client() -> hvac.Client:
vault_addr = os.getenv('VAULT_ADDR', 'https://vault.service.consul:8200')
vault_role_id = os.getenv('VAULT_ROLE_ID')
vault_role = os.getenv('VAULT_ROLE', 'rpmbuilder')
vault_audience = os.getenv('VAULT_AUDIENCE', 'vault')
# Initialize Vault client with CA certificate
client = hvac.Client(
@@ -207,8 +206,7 @@ def get_vault_client() -> hvac.Client:
client.auth.kubernetes.login(
role=vault_role,
jwt=jwt_token,
mount_point='k8s/au/syd1',
audience=vault_audience
mount_point='k8s/au/syd1'
)
if not client.is_authenticated():