Skip to content

Commit

Permalink
fix branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
irenedea committed Jan 31, 2024
1 parent a8047e1 commit a8e5b9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ jobs:
- name: Build and Push the Docker Image
uses: docker/build-push-action@v3
with:
with:
context: .
tags: ${{ env.IMAGE_TAG }}
push: true
cache-from: type=registry,ref=${{ env.IMAGE_CACHE }}
cache-to: type=registry,ref=${{ env.IMAGE_CACHE }},mode=max
build-args: |
BRANCH_NAME=${{ github.head_ref || github.ref_name }}
BASE_IMAGE=${{ matrix.base_image }}
DEP_GROUPS=${{ matrix.dep_groups }}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ ARG BASE_IMAGE
FROM $BASE_IMAGE

ARG DEP_GROUPS
ARG BRANCH_NAME

# Install and uninstall foundry to cache foundry requirements
RUN git clone -b main https://github.com/mosaicml/llm-foundry.git
RUN git clone -b $BRANCH_NAME https://github.com/mosaicml/llm-foundry.git
RUN pip install --no-cache-dir --upgrade "./llm-foundry${DEP_GROUPS}"
RUN pip uninstall -y llm-foundry
RUN rm -rf llm-foundry
Expand Down

0 comments on commit a8e5b9d

Please sign in to comment.