Skip to content

Commit

Permalink
Fix docker images (#1910)
Browse files Browse the repository at this point in the history
* With driver

* Remove deps

* No bitsandbytes

* Try with raw push

* We can keep old docker images

* Also include release

* Skorch uses master

* Right tag
  • Loading branch information
muellerzr authored Aug 31, 2023
1 parent cd3d3a3 commit 7befe58
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/build-docker-images-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and Push CPU
uses: docker/build-push-action@v2
with:
context: ./docker/accelerate-cpu
push: true
tags: huggingface/accelerate-cpu:${{needs.get-version.outputs.version}}
run: |
docker build -t huggingface/accelerate-cpu -f ./docker/accelerate-cpu/Dockerfile .
docker push huggingface/accelerate-cpu:${{needs.get-version.outputs.version}}
version-cuda:
name: "Latest Accelerate GPU [version]"
Expand All @@ -57,8 +55,6 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and Push GPU
uses: docker/build-push-action@v2
with:
context: ./docker/accelerate-gpu
push: true
tags: huggingface/accelerate-gpu:${{needs.get-version.outputs.version}}
run: |
docker build -t huggingface/accelerate-gpu -f ./docker/accelerate-gpu/Dockerfile .
docker push huggingface/accelerate-gpu:${{needs.get-version.outputs.version}}
17 changes: 6 additions & 11 deletions .github/workflows/build_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and Push CPU
uses: docker/build-push-action@v2
with:
context: ./docker/accelerate-cpu
push: true
tags: huggingface/accelerate-cpu
run: |
docker build -t huggingface/accelerate-cpu -f ./docker/accelerate-cpu/Dockerfile .
docker push huggingface/accelerate-cpu:latest
latest-cuda:
name: "Latest Accelerate GPU [dev]"
Expand All @@ -47,8 +44,6 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build and Push GPU
uses: docker/build-push-action@v2
with:
context: ./docker/accelerate-gpu
push: true
tags: huggingface/accelerate-gpu
run: |
docker build -t huggingface/accelerate-gpu -f ./docker/accelerate-gpu/Dockerfile .
docker push huggingface/accelerate-gpu:latest
2 changes: 1 addition & 1 deletion .github/workflows/self_hosted_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
run: |
source activate accelerate
git config --global --add safe.directory '*'
git checkout main && git pull
git checkout master && git pull
if [[ ${{ matrix.skorch-version }} = pypi ]]; then
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
fi
Expand Down

0 comments on commit 7befe58

Please sign in to comment.