Skip to content

Commit

Permalink
Merge pull request #8 from jkremser/run-img-build-in-paralel
Browse files Browse the repository at this point in the history
Run img build in paralel
  • Loading branch information
jkremser authored May 28, 2024
2 parents 3ad4fb4 + f7a08ab commit 644f9c1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/stable-diff-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ on:
required: false
default: latest
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CONTAINER_IMG_REGISTRY: ghcr.io
CONTAINER_IMG_ORG: kedify
Expand All @@ -32,12 +34,22 @@ env:
jobs:
build-container:
permissions:
contents: write # for creation of releases
contents: write
packages: write # push images
id-token: write # needed for signing the images with GitHub OIDC Token
name: build container
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
makefileTarget: [build-webui-image-multiarch, build-stable-diff-image-multiarch]
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
swap-size-mb: 2048
remove-dotnet: 'true'
remove-android: 'true'
- name: Checkout code
uses: actions/checkout@v4

Expand Down Expand Up @@ -66,4 +78,4 @@ jobs:
WEBUI_IMAGE: "${{ env.CONTAINER_IMG_REGISTRY }}/${{ env.CONTAINER_IMG_ORG }}/${{ env.CONTAINER_IMG_WEBUI_NAME }}:${{ env.CONTAINER_IMG_TAG }}"
run: |
cd samples/stable-diffusion/
make build-multiarch-images
make ${{ matrix.makefileTarget }}

0 comments on commit 644f9c1

Please sign in to comment.