Skip to content

Commit

Permalink
fight with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Dec 21, 2023
1 parent 5761973 commit 1980f70
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ jobs:
with:
context: .
load: true
# BASE_TAG=${{ github.ref_name }}-base-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}
build-args: |
BASE_TAG=main-base-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}
BASE_TAG=${{ github.ref_name }}-base-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}
CUDA=${{ matrix.cuda }}
PYTORCH_VERSION=${{ matrix.pytorch }}
file: ./docker/Dockerfile
Expand All @@ -69,20 +68,7 @@ jobs:
run: |
docker push ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }}
docker push ${{ (matrix.is_latest) && format('{0}-latest', steps.metadata.outputs.tags) || '' }}
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# file: ./docker/Dockerfile
# push: ${{ github.event_name != 'pull_request' }}
# tags: |
# ${{ steps.metadata.outputs.tags }}-py${{ matrix.python_version }}-cu${{ matrix.cuda }}-${{ matrix.pytorch }}${{ matrix.axolotl_extras != '' && '-' || '' }}${{ matrix.axolotl_extras }}
# ${{ (matrix.is_latest) && format('{0}-latest', steps.metadata.outputs.tags) || '' }}
# labels: ${{ steps.metadata.outputs.labels }}
# cache-from: type=local,src=/tmp/buildx-cache
# - name: delete the cache
# run: |
# rm -rf /tmp/buildx-cache
build-axolotl-runpod:
needs: build-axolotl
Expand Down

0 comments on commit 1980f70

Please sign in to comment.