Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Sep 3, 2024
1 parent 7bf99a9 commit 944d711
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env:

jobs:
deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-4-cores
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -28,21 +28,18 @@ jobs:
with:
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}

- name: Login Dockerhub
run: echo "${{ secrets.DOCKERHUB_KEY }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin

- name: Install dependencies
run: python -m pip install --upgrade 'pdm>=2.12,<3'
run: |
python -m pip install --upgrade 'pdm>=2.12,<3'
pdm install
- name: Docker build and push
run: |
IMAGE_NAME="${DOCKER_REPO_NAME}:${TAG_VERSION}"
echo "${{ secrets.DOCKERHUB_KEY }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
ls
echo "-----"
pdm install
echo "-----"
pdm run download_model.py --huggingface_token "${{ secrets.HUGGINGFACE_API_KEY }}"
echo "-----"
Expand Down

0 comments on commit 944d711

Please sign in to comment.