diff --git a/document2.ware b/document2.ware new file mode 100644 index 00000000..865fb352 --- /dev/null +++ b/document2.ware @@ -0,0 +1,19 @@ +name: Industrialisation continue sur le serveur AWS (Tomcat) +on: push +jobs: + Deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - run: | + jar cvf boris.war * + - name: copy file via ssh password + uses: appleboy/scp-action@master + with: + host: ${{ secrets.HOST_DNS }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.EC2_SSH_KEY }} + port: ${{ secrets.DEPLOY_PORT }} + source: "boris.war" + target: "/opt/tomcat/webapps"