Skip to content

Commit

Permalink
update:kmod ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kulukami committed Jan 23, 2024
1 parent b4a1574 commit 296bbe6
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/Elkeid_driver_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,49 @@ jobs:
with:
name: elkeid_driver_ol8_uek_x86_64
path: ${{steps.extract-ol8_uek.outputs.destination}}
build_oracle7_x86_64:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
with:
submodules: false
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{secrets.DOCKERHUB_TOKEN}}
username: ${{secrets.DOCKERHUB_USERNAME}}
- name: Set up Docker Buildx oracle7
uses: docker/setup-buildx-action@v2
- name: Build oracle7
uses: docker/build-push-action@v3
timeout-minutes: 300
with:
context: .
file: driver/dockerfiles.x86_64/Dockerfile.oracle7
load: false
push: true
tags: elkeidteam/elkeid_driver_oracle7_x86_64:latest
- name: Docker Hub Description oracle7
uses: peter-evans/dockerhub-description@v3
with:
password: ${{secrets.DOCKERHUB_TOKEN}}
repository: elkeidteam/elkeid_driver_oracle7_x86_64
short-description: ${{github.event.repository.description}}
username: ${{secrets.DOCKERHUB_USERNAME}}
- name: Extract oracle7
if: always()
id: extract-oracle7
uses: shrink/actions-docker-extract@v2
with:
image: elkeidteam/elkeid_driver_oracle7_x86_64:latest
path: /ko_output/.
- name: Upload oracle7
uses: actions/upload-artifact@v3
if: always()
with:
name: elkeid_driver_oracle7_x86_64
path: ${{steps.extract-oracle7.outputs.destination}}
build_rhel6_x86_64:
runs-on: ubuntu-latest
continue-on-error: true
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/Elkeid_driver_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,49 @@ jobs:
with:
name: elkeid_driver_ol8_uek_x86_64
path: ${{steps.extract-ol8_uek.outputs.destination}}
build_oracle7_x86_64:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
with:
submodules: false
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
password: ${{secrets.DOCKERHUB_TOKEN}}
username: ${{secrets.DOCKERHUB_USERNAME}}
- name: Set up Docker Buildx oracle7
uses: docker/setup-buildx-action@v2
- name: Build oracle7
uses: docker/build-push-action@v3
timeout-minutes: 300
with:
context: .
file: driver/dockerfiles.x86_64/Dockerfile.oracle7
load: false
push: true
tags: elkeidteam/elkeid_driver_oracle7_x86_64:latest
- name: Docker Hub Description oracle7
uses: peter-evans/dockerhub-description@v3
with:
password: ${{secrets.DOCKERHUB_TOKEN}}
repository: elkeidteam/elkeid_driver_oracle7_x86_64
short-description: ${{github.event.repository.description}}
username: ${{secrets.DOCKERHUB_USERNAME}}
- name: Extract oracle7
if: always()
id: extract-oracle7
uses: shrink/actions-docker-extract@v2
with:
image: elkeidteam/elkeid_driver_oracle7_x86_64:latest
path: /ko_output/.
- name: Upload oracle7
uses: actions/upload-artifact@v3
if: always()
with:
name: elkeid_driver_oracle7_x86_64
path: ${{steps.extract-oracle7.outputs.destination}}
build_rhel6_x86_64:
runs-on: ubuntu-latest
continue-on-error: true
Expand Down Expand Up @@ -2523,6 +2566,7 @@ jobs:
- build_ubuntu2004_azure_x86_64
- build_debian9_x86_64
- build_rhel8_elrepo_ml_x86_64
- build_oracle7_x86_64
- build_rhel7_elrepo_lt_x86_64
- build_ubuntu1604_k410_x86_64
- build_ubuntu1604_aws_x86_64
Expand Down
3 changes: 2 additions & 1 deletion driver/dockerfiles.x86_64/Dockerfile.rocky8
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ RUN yum groupinstall -y "Development Tools";
RUN mkdir /root/headers

WORKDIR /root/headers
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/rocky/8.8/BaseOS/x86_64/os/Packages/k/';
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/rocky/8.9/BaseOS/x86_64/os/Packages/k/';
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/rocky/8/BaseOS/x86_64/os/Packages/k/';
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/rocky-vault/8.8/BaseOS/x86_64/os/Packages/k/';
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/rocky-vault/8.7/BaseOS/x86_64/os/Packages/k/';
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/rocky-vault/8.6/BaseOS/x86_64/os/Packages/k/';
RUN wget -q -k -e robots=off -c -r -np -nd -nH -A 'kernel-devel*x86_64.rpm' 'https://mirrors.nju.edu.cn/rocky-vault/8.5/BaseOS/x86_64/os/Packages/k/'
Expand Down
4 changes: 1 addition & 3 deletions driver/dockerfiles.x86_64/Dockerfile.rocky9
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ RUN rpm --force -i /root/headers/*.rpm || true
ADD . /elkeid
WORKDIR /elkeid/driver
RUN bash ./build_script/x86_64/batch_compile.sh
RUN rm -rf /root/headers/*.rpm


RUN rm -rf /root/headers/*.rpm

0 comments on commit 296bbe6

Please sign in to comment.