Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anujdevopslearn authored Mar 6, 2024
1 parent 8f13aa1 commit c8fb20f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
with:
name: buildArtifact
path: target/*.war

deploy:
needs: build
runs-on: ubuntu-latest
Expand All @@ -51,3 +52,16 @@ jobs:
- name: Production Deployment
run: |
ls -lart
- name: scp ssh pipelines
uses: cross-the-world/ssh-scp-ssh-pipelines@latest
env:
LASTSSH: "Doing something after copying"
with:
host: ${{ secrets.DC_HOST }}
user: ${{ secrets.DC_USER }}
pass: ${{ secrets.DC_KEY }}
scp: |
./*.war => /tmp/
last_ssh: |
sudo cp /tmp/*.war /var/lib/tomcat9/webapps/Anuj.war
ls -la

0 comments on commit c8fb20f

Please sign in to comment.