parent
a259d7019e
commit
b7c9a84dfb
3 changed files with 14 additions and 29 deletions
|
@ -1,34 +1,8 @@
|
||||||
matrix:
|
|
||||||
platform:
|
|
||||||
- linux/amd64
|
|
||||||
- linux/arm64
|
|
||||||
|
|
||||||
labels:
|
|
||||||
platform: ${platform}
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
steps:
|
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
|
- name: build
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
|
@ -39,4 +13,3 @@ steps:
|
||||||
username: jmarya
|
username: jmarya
|
||||||
password:
|
password:
|
||||||
from_secret: registry_token
|
from_secret: registry_token
|
||||||
depends_on: [pacstrap_aarch64, pacstrap_x86_64]
|
|
||||||
|
|
13
Dockerfile
13
Dockerfile
|
@ -1,4 +1,13 @@
|
||||||
FROM scratch
|
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
COPY ./os-${TARGETARCH}/ /
|
FROM git.hydrar.de/navos/navos:latest
|
||||||
|
# Download rootfs
|
||||||
|
wget -O - "https://navos.hydrar.de/rootfs/${TARGETARCH}/rootfs.tar.xz" | tar --numeric-owner --xattrs --acls -xf - -C /os
|
||||||
|
|
||||||
|
# Copy
|
||||||
|
FROM scratch
|
||||||
|
COPY --from=builder /os/ /
|
||||||
|
|
||||||
|
# Update
|
||||||
|
RUN pacman -Syu --noconfirm
|
||||||
|
|
||||||
CMD ["/bin/sh"]
|
CMD ["/bin/sh"]
|
3
create_fs.sh
Normal file
3
create_fs.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
mkdir rootfs
|
||||||
|
doas navinstall create-tar rootfs
|
||||||
|
doas tar --numeric-owner --xattrs --acls -cpf rootfs.tar -C rootfs .
|
Loading…
Add table
Reference in a new issue