Skip to content

Commit

Permalink
login hub.docker.com
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Oct 3, 2024
1 parent b9a02c4 commit b404be1
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,33 @@ jobs:
- name: Check out code
uses: actions/checkout@v4

- name: Build ragflow:dev-slim
- name: Prepare data
run: |
RUNNER_WORKSPACE_PREFIX=${RUNNER_WORKSPACE_PREFIX:-$HOME}
cp -r ${RUNNER_WORKSPACE_PREFIX}/huggingface.co ${RUNNER_WORKSPACE_PREFIX}/nltk_data .
sudo docker build -f Dockerfile.slim -t infiniflow/ragflow:dev-slim .
# https://github.com/marketplace/actions/docker-login
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: infiniflow
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build ragflow:dev-slim
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: false
tags: infiniflow/ragflow:dev-slim
file: Dockerfile.slim

- name: Build ragflow:dev
run: |
sudo docker build -f Dockerfile -t infiniflow/ragflow:dev .
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: false
tags: infiniflow/ragflow:dev
file: Dockerfile

- name: Start ragflow:dev-slim
run: |
Expand Down

0 comments on commit b404be1

Please sign in to comment.