42 lines
1 KiB
YAML
42 lines
1 KiB
YAML
matrix:
|
|
platform:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
|
|
labels:
|
|
platform: ${platform}
|
|
|
|
when:
|
|
- event: push
|
|
branch: main
|
|
|
|
steps:
|
|
- name: pacstrap_x86_64
|
|
image: git.hydrar.de/navos/navos:latest
|
|
privileged: true
|
|
commands:
|
|
- pacman -Syu --noconfirm && pacman -S --noconfirm navinstall && yes | pacman -Scc
|
|
- mkdir os-amd64 && navinstall create-tar os-amd64
|
|
when:
|
|
platform: linux/amd64
|
|
|
|
- name: pacstrap_aarch64
|
|
image: git.hydrar.de/navos/navos:latest
|
|
privileged: true
|
|
commands:
|
|
- pacman -Syu --noconfirm && pacman -S --noconfirm navinstall && yes | pacman -Scc
|
|
- mkdir os-arm64 && navinstall create-tar os-arm64
|
|
when:
|
|
platform: linux/arm64
|
|
|
|
- name: build
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
platforms: linux/amd64,linux/arm64
|
|
repo: git.hydrar.de/navos/navos
|
|
registry: git.hydrar.de
|
|
tag: latest
|
|
username: jmarya
|
|
password:
|
|
from_secret: registry_token
|
|
depends_on: [pacstrap_aarch64, pacstrap_x86_64]
|