Kavitha|Awaiting appointments code refactor (#151) #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish package | |
on: | |
push: | |
branches: [ Bahmni-IPD-master ] | |
jobs: | |
Trivy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Trivy Scan | |
run: | | |
wget -q https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/trivy_scan.sh && chmod +x trivy_scan.sh | |
./trivy_scan.sh | |
rm trivy_scan.sh | |
build-publish-package: | |
name: Build and Publish package | |
runs-on: ubuntu-latest | |
needs: Trivy | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
server-id: nexus-sonatype | |
server-username: NEXUS_USERNAME | |
server-password: NEXUS_PASSWORD | |
- name: Build and deploy with Maven | |
run: ./mvnw --no-transfer-progress clean -U deploy | |
env: | |
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} |