30
30
steps :
31
31
32
32
- name : Cache marker for latest commit
33
- uses : actions/cache@v3
33
+ uses : actions/cache@v4
34
34
id : cache-sha
35
35
with :
36
36
key : sha-${{ github.sha }}
54
54
55
55
56
56
# 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
58
58
# by interested parties.
59
59
# We could even do better and check if paths of source files changed,
60
60
# but that is not that easy, so we build on any commit.
@@ -68,12 +68,12 @@ jobs:
68
68
steps :
69
69
70
70
- name : Checkout Gitblit
71
- uses : actions/checkout@v3
71
+ uses : actions/checkout@v4
72
72
with :
73
73
submodules : true
74
74
75
75
- name : Setup Java 8
76
- uses : actions/setup-java@v3
76
+ uses : actions/setup-java@v4
77
77
with :
78
78
java-version : 8
79
79
distribution : ' temurin'
88
88
89
89
- name : Save built Gitblit package
90
90
if : ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
91
- uses : actions/upload-artifact@v3
91
+ uses : actions/upload-artifact@v4
92
92
with :
93
93
name : gitblit-nightly
94
94
path : build/target/gitblit-*-SNAPSHOT.tar.gz
@@ -132,14 +132,14 @@ jobs:
132
132
133
133
steps :
134
134
- name : Checkout gitblit-docker
135
- uses : actions/checkout@v3
135
+ uses : actions/checkout@v4
136
136
with :
137
137
repository : ${{ env.GH_ORG }}/gitblit-docker
138
138
ref : master
139
139
fetch-depth : 2
140
140
141
141
- name : Download Gitblit nightly build
142
- uses : actions/download-artifact@v3
142
+ uses : actions/download-artifact@v4
143
143
id : get-gb
144
144
with :
145
145
name : gitblit-nightly
@@ -162,13 +162,13 @@ jobs:
162
162
echo "BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%S)" >> "${GITHUB_ENV}"
163
163
164
164
- name : Login to Docker Hub
165
- uses : docker/login-action@v2
165
+ uses : docker/login-action@v3
166
166
with :
167
167
username : ${{ secrets.DOCKERHUB_GB_USER }}
168
168
password : ${{ secrets.DOCKERHUB_GB_TOKEN }}
169
169
170
170
- name : Build snapshot docker image
171
- uses : docker/build-push-action@v3
171
+ uses : docker/build-push-action@v6
172
172
with :
173
173
file : generate/Dockerfile
174
174
context : .
@@ -181,9 +181,9 @@ jobs:
181
181
org.opencontainers.image.created=${{ env.BUILD_DATE }}
182
182
183
183
- 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
185
185
with :
186
- version : ' v0.3.16 '
186
+ version : ' v0.4.9 '
187
187
188
188
- name : Test docker container - normal mode
189
189
env :
@@ -214,14 +214,14 @@ jobs:
214
214
dgoss run -p 8080:8080 -p 8443:8443 --tmpfs /var/opt/gitblit/temp gitblit/gitblit:nightly
215
215
216
216
# Delete the artifact unless this is the official Gitblit repo
217
- - uses : geekyeggo/delete-artifact@v2
217
+ - uses : geekyeggo/delete-artifact@v5
218
218
if : ${{ github.repository != 'gitblit-org/gitblit' }}
219
219
with :
220
220
name : gitblit-nightly
221
221
failOnError : false
222
222
223
223
- name : Push docker image to registry
224
- uses : docker/build-push-action@v3
224
+ uses : docker/build-push-action@v6
225
225
with :
226
226
file : generate/Dockerfile
227
227
context : .
0 commit comments