Skip to content

Commit 150071b

Browse files
Update maven.yml
1 parent 655e6b9 commit 150071b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ jobs:
4545

4646
# build a docker image and push it to Docker Hub
4747
deploy:
48+
needs: [build]
4849
runs-on: ubuntu-latest
49-
defaults:
50-
run:
51-
working-directory: ./code/backend
50+
# defaults:
51+
# run:
52+
# working-directory: ./code/backend
5253
steps:
5354
- name: Login to Docker Hub
5455
uses: docker/login-action@v3
@@ -58,9 +59,12 @@ jobs:
5859

5960
- name: Set up Docker Buildx
6061
uses: docker/setup-buildx-action@v3
62+
with:
63+
context: ./code/backend
6164

6265
- name: Build and push
6366
uses: docker/build-push-action@v6
6467
with:
68+
context: ./code/backend
6569
push: true
6670
tags: ${{ vars.DOCKERHUB_USERNAME }}/campus_exchange:latest

0 commit comments

Comments
 (0)