Files
flake-hub/.woodpecker.yml
T
2026-03-16 17:46:06 +02:00

76 lines
1.9 KiB
YAML

# Build flake-hub packages for all architectures and push to attic
when:
- event: push
branch: main
clone:
- name: clone
image: woodpeckerci/plugin-git
environment:
CI_NETRC_MACHINE: git.oleks.space
CI_NETRC_USERNAME: oleks
CI_NETRC_PASSWORD:
from_secret: gitea_clone_token
PLUGIN_TAGS: "false"
PLUGIN_DEPTH: "1"
# Build packages for each architecture in parallel
steps:
- name: build-x86_64-linux
image: git.oleks.space/oleks/nix-ci:latest
depends_on: []
environment:
ATTIC_TOKEN:
from_secret: attic_token
GITEA_CLONE_TOKEN:
from_secret: gitea_clone_token
backend_options:
kubernetes:
nodeSelector:
kubernetes.io/arch: amd64
labels:
commit-ref: "${CI_COMMIT_REF}"
pipeline-number: "${CI_PIPELINE_NUMBER}"
commands:
- sh ci/setup.sh
- python3 ci/build.py x86_64-linux
- name: build-aarch64-linux
image: git.oleks.space/oleks/nix-ci:latest
depends_on: []
environment:
ATTIC_TOKEN:
from_secret: attic_token
GITEA_CLONE_TOKEN:
from_secret: gitea_clone_token
backend_options:
kubernetes:
nodeSelector:
kubernetes.io/arch: arm64
labels:
commit-ref: "${CI_COMMIT_REF}"
pipeline-number: "${CI_PIPELINE_NUMBER}"
commands:
- sh ci/setup.sh
- python3 ci/build.py aarch64-linux
- name: build-s390x-linux
image: git.oleks.space/oleks/nix-ci:latest
depends_on: []
environment:
ATTIC_TOKEN:
from_secret: attic_token
GITEA_CLONE_TOKEN:
from_secret: gitea_clone_token
backend_options:
kubernetes:
nodeSelector:
kubernetes.io/arch: amd64
labels:
commit-ref: "${CI_COMMIT_REF}"
pipeline-number: "${CI_PIPELINE_NUMBER}"
commands:
- sh ci/setup.sh
- python3 ci/build.py s390x-linux