Skip to content

Fixed minor paranthasees issue #6

Fixed minor paranthasees issue

Fixed minor paranthasees issue #6

Workflow file for this run

name: Deploy Java app to Azure Virtual Machine
on:
pull_request:
branches: [ "main" ]
types: [ closed ]
jobs:
deploy:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Deploy to Azure Virtual Machine
env:
SPRING_BOOT_VM_IP: ${{secrets.SPRING_BOOT_VM_IP}}
SPRING_BOOT_VM_USERNAME: ${{secrets.SPRING_BOOT_VM_USERNAME}}
SPRING_BOOT_VM_PRIVATE_KEY: ${{secrets.SPRING_BOOT_VM_PRIVATE_KEY}}
run: |
scp -i <(echo "${SPRING_BOOT_VM_PRIVATE_KEY}") target/*.jar $SPRING_BOOT_VM_USERNAME@$SPRING_BOOT_VM_IP:/home/Baighasan/spring-boot-demo/