Update ci.yml
This commit is contained in:
parent
0d3e4a694e
commit
e90eb11cc4
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user