From 1ff4698da68b15ed6787b28f1ea9193419d5422f Mon Sep 17 00:00:00 2001 From: Hamish Ivison Date: Tue, 22 Jul 2025 10:07:05 -0700 Subject: [PATCH 1/3] remove moar things --- .github/workflows/push-image.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 40e205fb31..1568f135ab 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -60,8 +60,12 @@ jobs: # ghcr_user: ${{ secrets.GHCR_USER }} # big images fail, trying this + # reference for big files in runner: https://github.com/actions/runner-images/issues/10386 - name: Delete huge unnecessary tools folder - run: rm -rf /opt/hostedtoolcache /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" + run: rm -rf /opt/hostedtoolcache /usr/share/dotnet "$AGENT_TOOLSDIRECTORY" /usr/local/lib/android/sdk/ndk + + - name: Check remaining disk space + run: df -h - name: Build image run: | From fd8fa2b51f103e7d5a050558b4acc92ae0b2cb30 Mon Sep 17 00:00:00 2001 From: Hamish Ivison Date: Tue, 22 Jul 2025 10:07:17 -0700 Subject: [PATCH 2/3] create on pr --- .github/workflows/push-image.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 1568f135ab..e92801bf79 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -23,15 +23,15 @@ on: - '.github/workflows/push-image.yml' # Note, add .olmo dockerfile + requirements if adding auto build to those branches: [main] - # pull_request: # note, comment this out for running on every push - # # Also run on PRs that update the files in the image's directory (other than README). - # branches: [main] - # paths: - # - 'open_instruct/**' - # - '!open_instruct/README.md' - # - 'requirements.txt' - # - 'Dockerfile' - # - '.github/workflows/push-image.yml' + pull_request: # note, comment this out for running on every push + # Also run on PRs that update the files in the image's directory (other than README). + branches: [main] + paths: + - 'open_instruct/**' + - '!open_instruct/README.md' + - 'requirements.txt' + - 'Dockerfile' + - '.github/workflows/push-image.yml' workflow_dispatch: # This allows us to manually trigger a build through the GitHub UI. env: From 15d3f59c6ab9b827d563bfed7b9963cf36ae9f1b Mon Sep 17 00:00:00 2001 From: Hamish Ivison Date: Tue, 22 Jul 2025 10:23:51 -0700 Subject: [PATCH 3/3] dont create on pr --- .github/workflows/push-image.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index e92801bf79..1568f135ab 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -23,15 +23,15 @@ on: - '.github/workflows/push-image.yml' # Note, add .olmo dockerfile + requirements if adding auto build to those branches: [main] - pull_request: # note, comment this out for running on every push - # Also run on PRs that update the files in the image's directory (other than README). - branches: [main] - paths: - - 'open_instruct/**' - - '!open_instruct/README.md' - - 'requirements.txt' - - 'Dockerfile' - - '.github/workflows/push-image.yml' + # pull_request: # note, comment this out for running on every push + # # Also run on PRs that update the files in the image's directory (other than README). + # branches: [main] + # paths: + # - 'open_instruct/**' + # - '!open_instruct/README.md' + # - 'requirements.txt' + # - 'Dockerfile' + # - '.github/workflows/push-image.yml' workflow_dispatch: # This allows us to manually trigger a build through the GitHub UI. env: