copy content to local server
This commit is contained in:
parent
5d021615c9
commit
883917c79e
@ -22,15 +22,14 @@ jobs:
|
|||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
- name: Build, Test and Package with Maven
|
- name: Build, Test and Package with Maven
|
||||||
run: mvn -B verify --file pom.xml -e
|
run: mvn -B verify --file pom.xml -e
|
||||||
- name: List Target Directory Contents
|
|
||||||
run: ls -l target/
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: app-artifacts
|
name: app-artifact
|
||||||
path: |
|
path: |
|
||||||
target/*.jar
|
target/*.jar
|
||||||
Dockerfile
|
Dockerfile
|
||||||
|
docker-compose.yml
|
||||||
- name: Create Maven settings.xml
|
- name: Create Maven settings.xml
|
||||||
run: |
|
run: |
|
||||||
cat <<EOF > ~/.m2/settings.xml
|
cat <<EOF > ~/.m2/settings.xml
|
||||||
@ -55,10 +54,8 @@ jobs:
|
|||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: app-artifacts
|
name: app-artifact
|
||||||
path: artifact
|
path: artifact
|
||||||
- name: List Artifact Contents
|
|
||||||
run: ls -l artifact/
|
|
||||||
- name: Install SSH Key
|
- name: Install SSH Key
|
||||||
uses: shimataro/ssh-key-action@v2
|
uses: shimataro/ssh-key-action@v2
|
||||||
with:
|
with:
|
||||||
@ -68,6 +65,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
scp artifact/target/*.jar ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
|
scp artifact/target/*.jar ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
|
||||||
scp artifact/Dockerfile ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
|
scp artifact/Dockerfile ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
|
||||||
# scp docker-compose.yml ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
|
scp artifact/docker-compose.yml ${{ vars.DEPLOY_USER }}@${{ vars.DEPLOY_HOST }}:${{ vars.DEPLOY_PATH }}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user