Skip to content

Commit 775dce0

Browse files
committed
docker
1 parent 6304407 commit 775dce0

3 files changed

Lines changed: 33 additions & 7 deletions

File tree

.github/workflows/beta-sk.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ jobs:
1313
remove-dotnet: 'true'
1414
remove-android: 'true'
1515
- uses: actions/checkout@v4
16+
# - name: Build Image
17+
# uses: docker://archlinux:latest
18+
# with:
19+
# options: --privileged=true
20+
# args: |
21+
# ./build.sh beta-sk
22+
- run: df -h
1623
- name: Build Image
17-
uses: docker://archlinux:latest
18-
with:
19-
options: --privileged=true
20-
args: |
21-
./build.sh beta-sk
24+
run: |
25+
mkdir -p output
26+
mkdir -p workdir
27+
docker pull archlinux:latest
28+
docker run -u root --privileged=true -v $(pwd):/holoiso -v $(pwd)/workdir:/holoiso/workdir -v $(pwd)/output:/holoiso/output -e GITHUB_REF_NAME=$GITHUB_REF_NAME -w /holoiso archlinux:latest ./build.sh beta-sk

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM archlinux:base-devel
2+
3+
RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.conf && \
4+
# Cannot check space in chroot
5+
sed -i '/CheckSpace/s/^/#/g' /etc/pacman.conf && \
6+
pacman-key --init && \
7+
pacman --noconfirm -Syyuu && \
8+
pacman --noconfirm -S \
9+
arch-install-scripts \
10+
btrfs-progs \
11+
base-devel \
12+
fmt \
13+
xcb-util-wm \
14+
wget \
15+
sudo \
16+
&& \
17+
pacman --noconfirm -S --needed git && \
18+
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
19+
useradd build -G wheel -m

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ pacman-key --init
1313
pacman --noconfirm -Syu btrfs-progs archiso git reflector
1414
git clone https://github.com/3003n/buildroot buildroot -b sk
1515
git clone https://github.com/3003n/postcopy -b ${POSTCOPY_CLONE} buildroot/postcopy_$1
16-
mkdir -p $(pwd)/output $(pwd)/workdir
17-
bash buildroot/build.sh --flavor $1 --deployment_rel $1 --snapshot_ver "${GITHUB_REF_NAME}" --workdir $(pwd)/workdir --output-dir $(pwd)/output/holoiso-images --add-release
16+
# mkdir -p $(pwd)/output $(pwd)/workdir
17+
bash buildroot/build.sh --flavor $1 --deployment_rel $1 --snapshot_ver "${GITHUB_REF_NAME}" --workdir /holoiso/workdir --output-dir /holoiso/output/holoiso-images --add-release

0 commit comments

Comments
 (0)