Skip to content

Commit

Permalink
Merge branch 'feature' into personal/xiaowen/custom_retrieval_test
Browse files Browse the repository at this point in the history
  • Loading branch information
moria97 authored Nov 27, 2024
2 parents 7bd3e3d + ce2a1b6 commit 6bfa3a9
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ on:

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: mybigpai-public-registry.cn-beijing.cr.aliyuncs.com
REGISTRY: ${{ secrets.BUILD_ACR_URL }}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -28,14 +28,6 @@ jobs:
- name: Check disk space
run: df . -h

- name: Free disk space
run: |
sudo docker rmi $(docker image ls -aq) >/dev/null 2>&1 || true
sudo rm -rf \
/usr/share/dotnet /usr/local/lib/android /opt/ghc \
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
/usr/lib/jvm || true
- name: Extract version
run: |
pip install poetry
Expand Down Expand Up @@ -84,3 +76,7 @@ jobs:
run: |
docker build -t ${{ env.REGISTRY }}/mybigpai/pairag:${{ env.SPECIFIC_IMAGE_TAG }} -f Dockerfile_gpu .
docker push ${{ env.REGISTRY }}/mybigpai/pairag:${{ env.SPECIFIC_IMAGE_TAG }}
- name: Free disk space
run: |
docker system prune -a -f

0 comments on commit 6bfa3a9

Please sign in to comment.