Skip to content

Merge pull request #6 from nhnacademy-be5-T3Team/feature/secureKey #26

Merge pull request #6 from nhnacademy-be5-T3Team/feature/secureKey

Merge pull request #6 from nhnacademy-be5-T3Team/feature/secureKey #26

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ "master" , "develop"]
pull_request:
branches: [ "master" , " develop"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name : upload file
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_IP }}
username: ${{ secrets.SSH_ID }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
source: "target/*.jar"
target: "~/"
rm: false
- name: execute shell script
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_IP }}
username: ${{ secrets.SSH_ID }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script_stop: true
script: "./startup.sh"
- name : Run SonarQube
run : mvn sonar:sonar -Dsonar.projectKey=github-action -Dsonar.host.url=${{secrets.SONAR_HOST}} -Dsonar.login=${{secrets.SONAR_TOKEN}}