remove target dir
Some checks failed
Gitea Action Maven build / build (push) Failing after 32s
Gitea Action Maven build / deploy (push) Has been skipped

This commit is contained in:
Eduard Kuksa 2025-02-13 21:30:20 +07:00
parent 84141a0e74
commit 436724f163
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ jobs:
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Deploy to Local Server
run: |
scp -r target/*.jar ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}target/
scp -r target/*.jar ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
scp Dockerfile ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
scp docker-compose.yml ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}

View File

@ -1,5 +1,5 @@
FROM openjdk:21-jdk-slim
WORKDIR /app
COPY target/spring-demo-0.1.1-SNAPSHOT.jar /app
COPY spring-demo-0.1.1-SNAPSHOT.jar /app
EXPOSE 8080
CMD ["java", "-jar", "spring-demo-0.1.1-SNAPSHOT.jar"]