From e90eb11cc41bbf03bc05aa2387add27ef3141848 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Wed, 7 Aug 2024 21:24:23 +0300 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 891fdb7..72a9ad7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,16 +10,25 @@ jobs: push: runs-on: self-hosted container: - image: ubuntu:latest + image: debian:sid volumes: - /proc:/proc - options: --privileged -it --cap-add=sys_admin --cap-add mknod --device=/dev/fuse --security-opt seccomp=unconfined --security-opt label=disable + options: --privileged -it steps: - uses: actions/checkout@v3 - - - name: Get Packages - run: apt-get update -y && apt-get install docker.io -y + + - name: Update APT Cache + run: apt-get update + + - name: Get debootstrap + run: apt-get install -y debootstrap docker.io sudo + + - name: Generate debootstrap tar + run: chmod +x ./debootstrap.sh && ./debootstrap.sh + + - name: Import base image + run: docker import ./base_chroot.tgz rootfs-base-debian-i386 - name: Build image run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" --security-opt seccomp=unconfined --security-opt label=disable