Skip to content

Commit e77465d

Browse files
Update maven.yml
1 parent fe5fab4 commit e77465d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
with:
5656
name: bu-secondhand-1.0.0
5757
path: ./code/backend/target/
58-
- run: cat ./code/backend/target/bu-secondhand-1.0.0.jar
5958

6059
- name: Login to Docker Hub
6160
uses: docker/login-action@v3
@@ -66,23 +65,14 @@ jobs:
6665
- name: Set up Docker Buildx
6766
uses: docker/setup-buildx-action@v3
6867

69-
- name: Build
68+
- name: Build and Push docker
7069
uses: docker/build-push-action@v6
7170
with:
7271
context: ./code/backend
7372
file: ./code/backend/Dockerfile
74-
load: true
7573
push: false
7674
tags: ${{ vars.DOCKERHUB_USERNAME }}/campus_exchange:latest
7775

7876
- name: Test Docker
7977
run: |
8078
docker run --rm ${{ vars.DOCKERHUB_USERNAME }}/campus_exchange:latest
81-
82-
# - name: Push
83-
# uses: docker/build-push-action@v6
84-
# with:
85-
# context: ./code/backend/
86-
# file: ./code/backend/Dockerfile
87-
# push: true
88-
# tags: ${{ vars.DOCKERHUB_USERNAME }}/campus_exchange:latest

0 commit comments

Comments
 (0)