In this example, we use Cloud Native Build to package a Spring Boot + Maven project and upload it to the server via SSH.
# springboot-maven-ssh-config.yml
REMOTE_HOST: xxx
REMOTE_USERNAME: xxx
REMOTE_PORT: xxx
PRIVATE_KEY: |
-----BEGIN RSA PRIVATE KEY-----
xxxxxxxx
-----END RSA PRIVATE KEY-----
mvn spring-boot:run