docker
Some checks failed
ci/woodpecker/push/build/1 Pipeline failed
ci/woodpecker/push/build/2 Pipeline failed

This commit is contained in:
JMARyA 2025-04-17 13:58:04 +02:00
parent 0007eefa54
commit 13d49adfdd
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 25 additions and 3 deletions

View file

@ -1,14 +1,34 @@
matrix:
platform:
- linux/amd64
- linux/arm64
labels:
platform: ${platform}
when:
- event: push
branch: main
steps:
- name: pacstrap
- 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 && navinstall create-tar os
- mkdir os-x86_64 && navinstall create-tar os-x86_64
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-aarch64 && navinstall create-tar os-aarch64
when:
platform: linux/arm64
- name: build
image: woodpeckerci/plugin-docker-buildx
settings:

View file

@ -1,3 +1,5 @@
FROM scratch
COPY --from=builder ./os/ /
ARG TARGETARCH
ARG ARCH=$(if [ "$TARGETARCH" -eq "linux/arm64" ]; then echo "aarch64"; else echo "x86_64"; fi)
COPY ./os-${ARCH}/ /
CMD ["/bin/sh"]