Skip to content

Commit

Permalink
fix: kernel build, align local registry and port with the image name
Browse files Browse the repository at this point in the history
  • Loading branch information
deomorxsy committed Apr 22, 2024
1 parent f3fbc31 commit 0f87d95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/kernel-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,15 @@ jobs:
with:
ref: ${{ github.ref }}

- name: Build docker image
run: |
docker build -t linux_build:latest -f=./utils/kernel/Dockerfile
- name: Build docker image
run: |
docker run -d -p 5000:5000 --name registry registry:latest
docker compose -f ./compose.yml --progress=plain build busybox
docker push localhost:5000/bubo_builder:latest
#podman build -t bubo_builder:latest -f ./utils/busybox/Dockerfile
- name: Retrieve artifact from docker image
run: |
docker run -it --name bubo -d localhost:5000/bubo_builder:latest
docker cp bubo:./initramfs.cpio.gz ${{ github.workspace }}/artifacts/
docker compose -f ./compose.yml --progress=plain build kernel
docker push localhost:5000/linux_build:latest
- name: Retrieve artifact from docker image
run: |
docker run -it --name kernel -d linux_build:latest
docker run -it --name kernel -d localhost:5000/linux_build:latest
docker cp kernel:/app/artifacts/bzImage ${{ github.workspace }}/artifacts/
- name: Archive the build artifact
Expand Down
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ services:
build:
context: "./utils/kernel/"
tags:
- "linux_build:01"
- "localhost:5000/linux_build:latest"
stop_signal: SIGINT

0 comments on commit 0f87d95

Please sign in to comment.