From 9eb34bb8eb094cd93156a6c2e64cf6d0072944aa Mon Sep 17 00:00:00 2001 From: Justin Law <81255462+justinthelaw@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:54:16 -0400 Subject: [PATCH] fix workflow free space (#9) --- .github/workflows/build-and-push-image.yaml | 18 ++++++++++++++++-- zarf-config.yaml | 4 ++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push-image.yaml b/.github/workflows/build-and-push-image.yaml index 2315475..6aed56f 100644 --- a/.github/workflows/build-and-push-image.yaml +++ b/.github/workflows/build-and-push-image.yaml @@ -22,6 +22,20 @@ jobs: - linux/arm/v7 - windows/amd64 steps: + - name: Maximize GitHub Runner Space + uses: justinthelaw/maximize-github-runner-space@f1181577375d1bdbf1897db6295f50ff34fdc94a # v0.1.1 + with: + # Standard package removal actions + remove-dotnet: "true" + remove-android: "true" + remove-haskell: "true" + remove-codeql: "true" + remove-docker-images: "true" + # Custom removal actions + remove-large-packages: "true" + remove-swapfile: "true" + remove-cached-tools: "true" + - name: Checkout Repository uses: actions/checkout@v4 @@ -109,14 +123,14 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - type=sha + type=sha - name: Create Manifest and Push Image working-directory: /tmp/digests run: | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ $(printf '${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) - + - name: Inspect image run: | docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }} diff --git a/zarf-config.yaml b/zarf-config.yaml index 9e171e5..d992100 100644 --- a/zarf-config.yaml +++ b/zarf-config.yaml @@ -2,10 +2,10 @@ package: create: set: image_repository: "ghcr.io/justinthelaw/gpu-support-test" - image_version: 0.1.0 + image_version: 0.1.1 name: gpu-support-test max_package_size: "1000000000" deploy: set: image_repository: "ghcr.io/justinthelaw/gpu-support-test" - image_version: 0.1.0 \ No newline at end of file + image_version: 0.1.1 \ No newline at end of file