mirror of
https://github.com/rancher/os.git
synced 2025-07-14 15:14:03 +00:00
Include kernel, initrd, squashfs in the artifacts
This commit is contained in:
parent
05e3fb580f
commit
37f5c2c27c
@ -1,9 +1,10 @@
|
||||
FROM golang:1.16.2-alpine3.12
|
||||
FROM opensuse/leap
|
||||
|
||||
ARG DAPPER_HOST_ARCH
|
||||
ENV ARCH $DAPPER_HOST_ARCH
|
||||
|
||||
RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates make
|
||||
RUN zypper ref
|
||||
RUN zypper in -y bash git gcc docker vim less file curl wget ca-certificates make mkisofs go1.16
|
||||
RUN go get golang.org/x/tools/cmd/goimports
|
||||
RUN if [ "${ARCH}" == "amd64" ]; then \
|
||||
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.40.1; \
|
||||
|
@ -28,8 +28,12 @@ fi
|
||||
export GIT_COMMIT=${COMMIT}
|
||||
make -j8 ${TARGETS}
|
||||
|
||||
isoinfo -x /rootfs.squashfs -R -i build/output.iso > build/output.squashfs
|
||||
isoinfo -x /boot/kernel.xz -R -i build/output.iso > build/output-kernel
|
||||
isoinfo -x /boot/rootfs.xz -R -i build/output.iso > build/output-initrd
|
||||
|
||||
mkdir -p dist/artifacts
|
||||
for i in build/output.*; do
|
||||
for i in build/output*; do
|
||||
mv -f $i dist/artifacts/rancheros-${TAG}${i##build/output}
|
||||
echo Built: dist/artifacts/rancheros-${TAG}${i##build/output}
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user