# Generated by tools/gen-pipelines - do not edit by hand. when: - event: push branch: master matrix: PACKAGE: - act_runner - bind_exporter - boilerplate - claude-code - cni-plugins - code-server - consul - consul-cni - etcd - exportarr - frr_exporter - g10k - git-delta - hadolint - helm - helmfile - jellyfin-ffmpeg-bin - jellyfin-server - jellyfin-web - jsonnet - jsonnet-language-server - jsonnet-lint - kubecolor - kubeconform - kubectx - kustomize - lazydocker - libfoundationdb - neovim - neovim-glibc-2.17 - nfpm - node_exporter - nomad - nomad-autoscaler - nzbget - nzbget_exporter - openbao-plugin-secret-consul - openbao-plugin-secret-nomad - openbao-plugins - packer - pgbouncer_exporter - postgres_exporter - puppet-initial - puppetdb_exporter - ruff - sops - stalwart - stalwart-cli - stalwart-foundationdb - starship - stern - tea - terraform - terragrunt - tflint - unkin-ca-certificates - unkin-undionly-kpxe - unrar - uv - vals - vault - victoria-logs - vlutils - vmagent - vmalert - vminsert - vmselect - vmstorage - vmutils - xh - yq steps: - name: build image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest commands: - mkdir -p /woodpecker/rpms - ln -s /woodpecker/rpms /workspace - ./tools/build build --distro almalinux/el8 --buildah "$PACKAGE" privileged: true backend_options: kubernetes: serviceAccountName: default resources: requests: memory: 512Mi cpu: 1 limits: memory: 2Gi cpu: 2 - name: upload image: git.unkin.net/unkin/almalinux9-base:latest commands: - | HOST="https://artifactapi.k8s.syd1.au.unkin.net" REPO="rpm-vendor-el8" for rpm in $(find dist -type f -name '*.rpm'); do FILE=$$(basename "$$rpm") # artifactapi has no HEAD route (405); probe the served Packages path. code=$$(curl -s -o /dev/null -w '%{http_code}' "$$HOST/api/v2/remotes/$$REPO/files/Packages/$$FILE" || true) if [ "$$code" = "200" ]; then echo "$$FILE already exists in $$REPO (HTTP $$code); skipping upload" continue fi echo "Uploading $$FILE to $$REPO (existence probe returned $$code)" curl -f -X PUT \ "$$HOST/api/v2/remotes/$$REPO/files/$$FILE" \ -H "Content-Type: application/x-rpm" \ --data-binary @"$$rpm" done depends_on: [build] backend_options: kubernetes: serviceAccountName: default resources: requests: memory: 128Mi cpu: 100m limits: memory: 512Mi cpu: 500m