Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig authored Feb 7, 2025
1 parent 4100036 commit 1429312
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,19 @@ jobs:
runs-on: ubuntu-latest
permissions: write-all
steps:
# For biggish images, github actions runs out of disk space.
# So we cleanup some unwanted things in the disk image, and reclaim that space for our docker use
# https://github.com/actions/virtual-environments/issues/2606#issuecomment-772683150
# and https://github.com/easimon/maximize-build-space/blob/b4d02c14493a9653fe7af06cc89ca5298071c66e/action.yml#L104
# This gives us a total of about 52G of free space, which should be enough for now
- name: cleanup disk space
- name: free extra disk space
run: |
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
df -h
- uses: actions/checkout@v3
- name: Login to GitHub Container Registry
if: github.repository == 'rocker-org/ml'
uses: docker/login-action@v1
- name: Publish to GitHub Container Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: rocker-org/ml
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build the Docker image
if: github.repository == 'rocker-org/ml'
run: docker build --no-cache --tag ghcr.io/rocker-org/ml:latest .
# - name: Publish to GHCR
# if: github.repository == 'rocker-org/ml'
# run: docker push ghcr.io/rocker-org/ml:latest
- name: Publish to Docker Hub
- name: Publish to Docker Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: rocker/ml
Expand Down

0 comments on commit 1429312

Please sign in to comment.