check copy Dockerfile to artifact dir 2

This commit is contained in:
Eduard Kuksa 2025-02-13 21:51:49 +07:00
parent d6327f3d3e
commit 9508ff64a9

View File

@ -25,7 +25,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build-artifact
name: app-artifacts
path: |
target/*.jar
Dockerfile
@ -53,8 +53,8 @@ jobs:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: build-artifact
path: target
name: app-artifacts
path: artifact
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
@ -62,8 +62,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 }}
ls
scp artifact/*.jar ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
# scp docker-compose.yml ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
# scp Dockerfile ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
scp artifact/Dockerfile ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}