Skip to content

Commit

Permalink
allow listed runners
Browse files Browse the repository at this point in the history
  • Loading branch information
KevDevSha authored Jul 30, 2024
1 parent 964e10c commit cbb7fc4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/docker-configure-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ on:
required: true
jobs:
configure-build-push:
runs-on: ubuntu-latest
runs-on: linux-ubuntu-latest
steps:
- name: Maximize Build Space on Worker
uses: easimon/maximize-build-space@v4
Expand Down Expand Up @@ -110,3 +110,14 @@ jobs:
cache-from: type=registry,ref=${{ env.IMAGE_CACHE }}
cache-to: type=registry,ref=${{ env.IMAGE_CACHE }},mode=max
build-args: ${{ inputs.build-args }}

- name: Build and Push the Docker Image
uses: docker/build-push-action@v3
with:
context: ${{ inputs.context }}
tags: ${{ env.IMAGE_TAG }}, ${{ env.GHCR_IMAGE_TAG }}
target: ${{ inputs.target }}
push: ${{ inputs.push }}
cache-from: type=registry,ref=${{ env.IMAGE_CACHE }}
cache-to: type=registry,ref=${{ env.IMAGE_CACHE }},mode=max
build-args: ${{ inputs.build-args }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defaults:
jobs:
build-image-matrix:
if: github.repository_owner == 'mosaicml'
runs-on: ubuntu-latest
runs-on: linux-ubuntu-latest
timeout-minutes: 2
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
Expand Down

0 comments on commit cbb7fc4

Please sign in to comment.