From 0f87d95dddcb1b916b43b2aaf489e62b8db287f9 Mon Sep 17 00:00:00 2001 From: asari <32879431+deomorxsy@users.noreply.github.com> Date: Sun, 21 Apr 2024 23:00:17 -0300 Subject: [PATCH] fix: kernel build, align local registry and port with the image name --- .github/workflows/kernel-builder.yml | 17 +++-------------- compose.yml | 2 +- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/kernel-builder.yml b/.github/workflows/kernel-builder.yml index 19c4f13..134d3c1 100644 --- a/.github/workflows/kernel-builder.yml +++ b/.github/workflows/kernel-builder.yml @@ -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 diff --git a/compose.yml b/compose.yml index c0cbaa2..bedcc04 100644 --- a/compose.yml +++ b/compose.yml @@ -17,5 +17,5 @@ services: build: context: "./utils/kernel/" tags: - - "linux_build:01" + - "localhost:5000/linux_build:latest" stop_signal: SIGINT