Update ci.yml

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2024-08-07 21:24:23 +03:00 committed by GitHub
parent 0d3e4a694e
commit e90eb11cc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,16 +10,25 @@ jobs:
push: push:
runs-on: self-hosted runs-on: self-hosted
container: container:
image: ubuntu:latest image: debian:sid
volumes: volumes:
- /proc:/proc - /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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Get Packages - name: Update APT Cache
run: apt-get update -y && apt-get install docker.io -y 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 - name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" --security-opt seccomp=unconfined --security-opt label=disable run: docker build . --file Dockerfile --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}" --security-opt seccomp=unconfined --security-opt label=disable