Skip to content

Commit

Permalink
[workflow] Bake images one by one
Browse files Browse the repository at this point in the history
  • Loading branch information
berney committed Oct 29, 2023
1 parent 7b19cd8 commit a7f245b
Showing 1 changed file with 42 additions and 3 deletions.
45 changes: 42 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,52 @@ jobs:
echo "[!] No files to verify"
fi
- name: 🐋🍳 Docker Bake Kubler portage, stage3, and bob-core Images
- name: 🐋🍳 Docker Bake Kubler - images before baking
run: |
cd ../kubler/engine/docker/
./docker-bake.sh
pwd
docker images
- name: 🐋🍳 Docker Bake Kubler portage
run: |
set -eux
cd ../kubler/engine/docker/bob-portage || exit 1
# Repeating `--set` adds to the array
# - https://github.com/docker/buildx/issues/872
# - Doing it this way results in one image (repository hash) with two tags
# - doing separate `TAG=xxx docker buildx bake` commands results in two different images (repository hashes), with identical layers, and near identical metadata.
docker buildx bake --load --set kubler-portage.tags=kubler-gentoo/portage:latest --set kubler-portage.tags=kubler-gentoo/portage:buildx2
- name: 🐋🍳 Docker Bake Kubler - images portage
run: |
pwd
docker images
- name: 🐋🍳 Docker Bake Kubler stage3
run: |
set -eux
cd ../kubler/engine/docker/bob-stage3 || exit 1
BASE_TAG=musl-hardened docker buildx bake --load --set gentoo-stage3.tags=kubler-gentoo/stage3-amd64-musl-hardened:latest --set gentoo-stage3.tags=kubler-gentoo/stage3-amd64-musl-hardened:20230423T164653Z
BASE_TAG=hardened-nomultilib docker buildx bake --load --set gentoo-stage3.tags=kubler-gentoo/stage3-amd64-hardened-nomultilib-openrc:latest --set gentoo-stage3.tags=kubler-gentoo/stage3-amd64-hardened-nomultilib-openrc:20230423T164653Z
- name: 🐋🍳 Docker Bake Kubler - images stage3
run: |
pwd
docker images
- name: 🐋🍳 Docker Bake Kubler bob-core
run: |
set -eux
cd ../kubler/engine/docker/bob-core || exit 1
DEF_CHOST=x86_64-gentoo-linux-musl BASE_IMAGE=kubler-gentoo/stage3-amd64-musl-hardened docker buildx bake --load --set core.tags=kubler/bob-musl-core:latest --set core.tags=kubler/bob-musl-core:buildx2
BASE_IMAGE=kubler-gentoo/stage3-amd64-hardened-nomultilib-openrc docker buildx bake --load --set core.tags=kubler/bob-core:latest --set core.tags=kubler/bob-core:buildx2
#docker images | grep kubler
- name: 🐋🍳 Docker Bake Kubler - images bob-core
run: |
pwd
docker images
- name: 🚧 Build Images - kubler/busybox
#if: ${{ false }}
id: busybox
Expand Down

0 comments on commit a7f245b

Please sign in to comment.