3030 steps :
3131
3232 - name : Cache marker for latest commit
33- uses : actions/cache@v3
33+ uses : actions/cache@v4
3434 id : cache-sha
3535 with :
3636 key : sha-${{ github.sha }}
5454
5555
5656# Build Gitblit GO so that it can be packed into a docker image.
57- # The built tarball is saved as an artefact , it can be downloaded
57+ # The built tarball is saved as an artifact , it can be downloaded
5858# by interested parties.
5959# We could even do better and check if paths of source files changed,
6060# but that is not that easy, so we build on any commit.
@@ -68,12 +68,12 @@ jobs:
6868 steps :
6969
7070 - name : Checkout Gitblit
71- uses : actions/checkout@v3
71+ uses : actions/checkout@v4
7272 with :
7373 submodules : true
7474
7575 - name : Setup Java 8
76- uses : actions/setup-java@v3
76+ uses : actions/setup-java@v4
7777 with :
7878 java-version : 8
7979 distribution : ' temurin'
8888
8989 - name : Save built Gitblit package
9090 if : ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
91- uses : actions/upload-artifact@v3
91+ uses : actions/upload-artifact@v4
9292 with :
9393 name : gitblit-nightly
9494 path : build/target/gitblit-*-SNAPSHOT.tar.gz
@@ -132,14 +132,14 @@ jobs:
132132
133133 steps :
134134 - name : Checkout gitblit-docker
135- uses : actions/checkout@v3
135+ uses : actions/checkout@v4
136136 with :
137137 repository : ${{ env.GH_ORG }}/gitblit-docker
138138 ref : master
139139 fetch-depth : 2
140140
141141 - name : Download Gitblit nightly build
142- uses : actions/download-artifact@v3
142+ uses : actions/download-artifact@v4
143143 id : get-gb
144144 with :
145145 name : gitblit-nightly
@@ -162,13 +162,13 @@ jobs:
162162 echo "BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%S)" >> "${GITHUB_ENV}"
163163
164164 - name : Login to Docker Hub
165- uses : docker/login-action@v2
165+ uses : docker/login-action@v3
166166 with :
167167 username : ${{ secrets.DOCKERHUB_GB_USER }}
168168 password : ${{ secrets.DOCKERHUB_GB_TOKEN }}
169169
170170 - name : Build snapshot docker image
171- uses : docker/build-push-action@v3
171+ uses : docker/build-push-action@v6
172172 with :
173173 file : generate/Dockerfile
174174 context : .
@@ -181,9 +181,9 @@ jobs:
181181 org.opencontainers.image.created=${{ env.BUILD_DATE }}
182182
183183 - name : Install Goss for testing the docker image
184- uses : e1himself/goss-installation-action@v1.0.4
184+ uses : e1himself/goss-installation-action@v1.2.1
185185 with :
186- version : ' v0.3.16 '
186+ version : ' v0.4.9 '
187187
188188 - name : Test docker container - normal mode
189189 env :
@@ -214,14 +214,14 @@ jobs:
214214 dgoss run -p 8080:8080 -p 8443:8443 --tmpfs /var/opt/gitblit/temp gitblit/gitblit:nightly
215215
216216 # Delete the artifact unless this is the official Gitblit repo
217- - uses : geekyeggo/delete-artifact@v2
217+ - uses : geekyeggo/delete-artifact@v5
218218 if : ${{ github.repository != 'gitblit-org/gitblit' }}
219219 with :
220220 name : gitblit-nightly
221221 failOnError : false
222222
223223 - name : Push docker image to registry
224- uses : docker/build-push-action@v3
224+ uses : docker/build-push-action@v6
225225 with :
226226 file : generate/Dockerfile
227227 context : .
0 commit comments