Skip to content

Commit

Permalink
Fix scp-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ committed Oct 13, 2023
1 parent 305733e commit 2d05433
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/scp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
jobs:
scp-deploy:
runs-on: ubuntu-latest
env:
SCP_USERNAME: ${{ secrets.SCP_USERNAME }}
SCP_HOST: ${{ secrets.SCP_HOST }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -30,29 +33,17 @@ jobs:
echo $SCP_CERTIFICATE > cert.pem
- name: Deploy enrollment-server.war
shell: bash
env:
SCP_USERNAME: ${{ secrets.SCP_USERNAME }}
SCP_HOST: ${{ secrets.SCP_HOST }}
run: |
scp -i cert.pem enrollment-server-wultra-*.war $SCP_USERNAME@$SCP_HOST:/opt/apache-tomcat/webapps/enrollment-server.war
- name: Deploy enrollment-server-onboarding.war
shell: bash
env:
SCP_USERNAME: ${{ secrets.SCP_USERNAME }}
SCP_HOST: ${{ secrets.SCP_HOST }}
run: |
scp -i cert.pem enrollment-server-onboarding-wultra-*.war $SCP_USERNAME@$SCP_HOST:/opt/apache-tomcat/webapps/enrollment-server-onboarding.war
- name: Deploy enrollment-server.war mock
shell: bash
env:
SCP_USERNAME: ${{ secrets.SCP_USERNAME }}
SCP_HOST: ${{ secrets.SCP_HOST }}
run: |
scp -i cert.pem enrollment-server-wultra-*.war $SCP_USERNAME@$SCP_HOST:/opt/apache-tomcat/webapps/enrollment-server-mock.war
- name: Deploy enrollment-server-onboarding.war mock
shell: bash
env:
SCP_USERNAME: ${{ secrets.SCP_USERNAME }}
SCP_HOST: ${{ secrets.SCP_HOST }}
run: |
scp -i cert.pem enrollment-server-onboarding-wultra-*.war $SCP_USERNAME@$SCP_HOST:/opt/apache-tomcat/webapps/enrollment-server-onboarding-mock.war

0 comments on commit 2d05433

Please sign in to comment.