Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
run: ./bin/init.sh
shell: bash

- name: Install pigz
run: curl -sSfLo c:\windows\system32\unpigz.exe https://kjkpub.s3.amazonaws.com/software/pigz/2.3.1-149/unpigz.exe

# ignore not yet existing images
- name: Fetch the docker images
run: |
Expand All @@ -41,18 +44,14 @@ jobs:
docker pull ${{ env.IMAGE }}:${{ env.VERSION }}-${{ env.TAG }}
continue-on-error: true

- name: Set up Docker Buildx
uses: docker/[email protected]
with:
version: latest
driver: docker

- name: Build the docker image
run: |
docker build --progress plain \
-t ${{ env.IMAGE }}:${{ env.TAG }} \
-t ${{ env.IMAGE }}:${{ env.VERSION }}-${{ env.TAG }} \
--cache-from ${{ env.IMAGE }} \
--cache-from ${{ env.IMAGE }}:${{ env.TAG }} \
--cache-from ${{ env.IMAGE }}:${{ env.VERSION }}-${{ env.TAG }} \
-f Dockerfile.${{ env.BASE }} \
.
working-directory: ./windows
shell: bash
run: docker buildx bake --progress plain test

- name: Test run
run: docker-compose --file docker-compose.test.yml run sut
Expand Down
6 changes: 5 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ variable "VERSION" {
default = ""
}

variable "SYSTEM" {
default = "linux"
}

group "default" {
targets = ["build_ghcr", "build_docker"]
}
Expand All @@ -29,7 +33,7 @@ group "test" {
}

target "settings" {
context = "./linux"
context = "./${SYSTEM}"
inherits = ["settings"]
cache-from = ["type=registry,ref=ghcr.io/${OWNER}/cache:${FILE}-${TAG}"]
}
Expand Down