30
30
steps :
31
31
32
32
- name : Cache marker for latest commit
33
- uses : actions/cache@v2
33
+ uses : actions/cache@v3
34
34
id : cache-sha
35
35
with :
36
36
key : sha-${{ github.sha }}
@@ -68,14 +68,15 @@ jobs:
68
68
steps :
69
69
70
70
- name : Checkout Gitblit
71
- uses : actions/checkout@v1
71
+ uses : actions/checkout@v3
72
72
with :
73
73
submodules : true
74
74
75
75
- name : Setup Java 8
76
- uses : actions/setup-java@v1
76
+ uses : actions/setup-java@v3
77
77
with :
78
78
java-version : 8
79
+ distribution : ' temurin'
79
80
80
81
- name : Report Java version
81
82
run : |
87
88
88
89
- name : Save built Gitblit package
89
90
if : ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
90
- uses : actions/upload-artifact@v2
91
+ uses : actions/upload-artifact@v3
91
92
with :
92
93
name : gitblit-nightly
93
94
path : build/target/gitblit-*-SNAPSHOT.tar.gz
@@ -110,7 +111,7 @@ jobs:
110
111
id : check-dh-login
111
112
run : |
112
113
if [[ -n "${{secrets.DOCKERHUB_GB_TOKEN}}" && -n "${{secrets.DOCKERHUB_GB_USER}}" ]] ; then
113
- echo "::set-output name= secrets_present:: true"
114
+ echo "secrets_present= true" >> $GITHUB_OUTPUT
114
115
else
115
116
echo "No Docker Hub login data found. Skipping Docker."
116
117
fi
@@ -131,21 +132,21 @@ jobs:
131
132
132
133
steps :
133
134
- name : Checkout gitblit-docker
134
- uses : actions/checkout@v1
135
+ uses : actions/checkout@v3
135
136
with :
136
137
repository : ${{ env.GH_ORG }}/gitblit-docker
137
138
ref : master
138
139
fetch-depth : 2
139
140
140
141
- name : Download Gitblit nightly build
141
- uses : actions/download-artifact@v2
142
+ uses : actions/download-artifact@v3
142
143
id : get-gb
143
144
with :
144
145
name : gitblit-nightly
145
146
path : ../gitblit-docker
146
147
147
148
# Delete the artifact unless this is the official Gitblit repo
148
- - uses : geekyeggo/delete-artifact@v1
149
+ - uses : geekyeggo/delete-artifact@v2
149
150
if : ${{ github.repository != 'gitblit/gitblit' }}
150
151
with :
151
152
name : gitblit-nightly
@@ -162,7 +163,7 @@ jobs:
162
163
gbver=${gbver##*gitblit-}
163
164
echo "Version detected: $gbver"
164
165
echo "GITBLIT_VERSION=$gbver" >> "${GITHUB_ENV}"
165
- echo "::set-output name= gb-version:: $gbver"
166
+ echo "gb-version= $gbver" >> $GITHUB_OUTPUT
166
167
167
168
- name : Generate Dockerfile for snapshot image
168
169
working-directory : ../gitblit-docker
@@ -171,13 +172,13 @@ jobs:
171
172
echo "BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%S)" >> "${GITHUB_ENV}"
172
173
173
174
- name : Login to Docker Hub
174
- uses : docker/login-action@v1
175
+ uses : docker/login-action@v2
175
176
with :
176
177
username : ${{ secrets.DOCKERHUB_GB_USER }}
177
178
password : ${{ secrets.DOCKERHUB_GB_TOKEN }}
178
179
179
180
- name : Build snapshot docker image
180
- uses : docker/build-push-action@v2
181
+ uses : docker/build-push-action@v3
181
182
with :
182
183
file : ../gitblit-docker/generate/Dockerfile
183
184
context : ../gitblit-docker
@@ -226,7 +227,7 @@ jobs:
226
227
dgoss run -p 8080:8080 -p 8443:8443 --tmpfs /var/opt/gitblit/temp gitblit/gitblit:nightly
227
228
228
229
- name : Push docker image to registry
229
- uses : docker/build-push-action@v2
230
+ uses : docker/build-push-action@v3
230
231
with :
231
232
file : ../gitblit-docker/generate/Dockerfile
232
233
context : ../gitblit-docker
0 commit comments