Skip to content

Commit

Permalink
fix workflow free space (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinthelaw authored Jun 17, 2024
1 parent 0b9661c commit 9eb34bb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build-and-push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions zarf-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
image_version: 0.1.1

0 comments on commit 9eb34bb

Please sign in to comment.