Skip to content

Commit 646231e

Browse files
committed
Fix paths after update of checkout action
The Github 'checkout' action was updated from v1 to v3. But the behaviour changed between the two which broke this workflow. The old action would clone other repositories not into the workspace but parallel to the workspace. The new version does every clone/checkout relative to the workspace. That means that where previously the gitblit-docker repository would be cloned in parallel to the workspace which is gitblit/gitblit, it is now cloned into the gitblit/gitblit directory path. So remove all the references to `../gitblit-docker`. The files are in the current directory now.
1 parent 6636565 commit 646231e

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/nightly-build.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ jobs:
143143
id: get-gb
144144
with:
145145
name: gitblit-nightly
146-
path: ../gitblit-docker
147146

148147
# Delete the artifact unless this is the official Gitblit repo
149148
- uses: geekyeggo/delete-artifact@v2
@@ -154,7 +153,6 @@ jobs:
154153

155154
- name: Extract snapshot version
156155
id: gb-version
157-
working-directory: ../gitblit-docker
158156
run: |
159157
for file in $(ls -1 ${{steps.get-gb.outputs.download-path}}) ; do
160158
if [[ "$file" = gitblit-*.gz ]] ; then gbver=$file ; fi
@@ -166,7 +164,6 @@ jobs:
166164
echo "gb-version=$gbver" >> $GITHUB_OUTPUT
167165
168166
- name: Generate Dockerfile for snapshot image
169-
working-directory: ../gitblit-docker
170167
run: |
171168
generate/generate_dockerfile.sh -v ${{ steps.gb-version.outputs.gb-version }} > generate/Dockerfile
172169
echo "BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%S)" >> "${GITHUB_ENV}"
@@ -180,8 +177,8 @@ jobs:
180177
- name: Build snapshot docker image
181178
uses: docker/build-push-action@v3
182179
with:
183-
file: ../gitblit-docker/generate/Dockerfile
184-
context: ../gitblit-docker
180+
file: generate/Dockerfile
181+
context: .
185182
load: true
186183
tags: gitblit/gitblit:nightly
187184
labels: |
@@ -196,14 +193,12 @@ jobs:
196193
version: 'v0.3.16'
197194

198195
- name: Test docker container - normal mode
199-
working-directory: ../gitblit-docker
200196
env:
201197
GOSS_WAIT_OPTS: "-r 15s -s 5s > /dev/null"
202198
run: |
203199
dgoss run -p 8080:8080 -p 8443:8443 gitblit/gitblit:nightly
204200
205201
- name: Test docker container - bind mount
206-
working-directory: ../gitblit-docker
207202
env:
208203
GOSS_WAIT_OPTS: "-r 15s -s 5s > /dev/null"
209204
run: |
@@ -220,7 +215,6 @@ jobs:
220215
sudo rm -rf gitblit-data
221216
222217
- name: Test docker container - tmpfs
223-
working-directory: ../gitblit-docker
224218
env:
225219
GOSS_WAIT_OPTS: "-r 15s -s 5s > /dev/null"
226220
run: |
@@ -229,8 +223,8 @@ jobs:
229223
- name: Push docker image to registry
230224
uses: docker/build-push-action@v3
231225
with:
232-
file: ../gitblit-docker/generate/Dockerfile
233-
context: ../gitblit-docker
226+
file: generate/Dockerfile
227+
context: .
234228
push: true
235229
tags: gitblit/gitblit:nightly
236230
labels: |

0 commit comments

Comments
 (0)