65 lines
1.5 KiB
YAML
65 lines
1.5 KiB
YAML
# Build flake-hub packages for all architectures and push to attic
|
|
|
|
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
|
|
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
|
|
# 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
|
|
commands:
|
|
- sh ci/setup.sh
|
|
- sh ci/build.sh 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
|
|
commands:
|
|
- sh ci/setup.sh
|
|
- sh ci/build.sh 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
|
|
commands:
|
|
- sh ci/setup.sh
|
|
- sh ci/build.sh s390x-linux
|