33# build, push and cache the docker image. I have to adjust the following in case of a different repository:
44# - I have to add the 'BUILD_DATE' arg in the Dockerfile
55# - I have to create a DOCKER_PASSWORD (use the docker token) in the 'Settings' tab of the repository
6+ # - This github action also updates the dockerhub readme file
67# References:
78# - https://github.com/mlampros/IceSat2R/blob/master/.github/workflows/docker_image.yml
89# - https://github.com/orgs/community/discussions/25768#discussioncomment-3249184
@@ -21,25 +22,26 @@ jobs:
2122 runs-on : ubuntu-latest
2223
2324 steps :
25+ - name : Check Out Repo
26+ uses : actions/checkout@v5
27+
2428 - id : string
25- uses : ASzc/change-string-case-action@v1
29+ uses : ASzc/change-string-case-action@v6
2630 with :
2731 string : ${{ github.event.repository.name }}
2832
29- - name : Check Out Repo
30- uses : actions/checkout@v2
31-
3233 - name : Login to Docker Hub
33- uses : docker/login-action@v2
34+ uses : docker/login-action@v3
3435 with :
3536 username : ${{ github.repository_owner }}
3637 password : ${{ secrets.DOCKER_PASSWORD }}
3738
3839 - name : Set up Docker Buildx
39- uses : docker/setup-buildx-action@v1
40+ id : buildx
41+ uses : docker/setup-buildx-action@v3
4042
4143 - name : Build and push
42- uses : docker/build-push-action@v2
44+ uses : docker/build-push-action@v6
4345 with :
4446 context : ./
4547 build-args : BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
4951 tags : ${{ github.repository_owner }}/${{ steps.string.outputs.lowercase }}:rstudiodev
5052 cache-from : type=registry,ref=${{ github.repository_owner }}/${{ steps.string.outputs.lowercase }}:buildcache
5153 cache-to : type=registry,ref=${{ github.repository_owner }}/${{ steps.string.outputs.lowercase }}:buildcache,mode=max
54+
55+ - name : Update Docker Hub Description
56+ uses : peter-evans/dockerhub-description@v4
57+ with :
58+ username : ${{ github.repository_owner }}
59+ password : ${{ secrets.DOCKER_PASSWORD }}
60+ repository : ${{ github.repository_owner }}/${{ steps.string.outputs.lowercase }}
61+ short-description : ${{ github.event.repository.description }}
62+ readme-filepath : ./README.md
0 commit comments