Skip to content

Added remote refreshing mechanism #84

Added remote refreshing mechanism

Added remote refreshing mechanism #84

Workflow file for this run

name: 'master_build'
on:
push:
branches: [ master ]
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
jobs:
build_job:
runs-on: ubuntu-latest
name: Build & Test Microservice
services:
rabbitmq:
image: rabbitmq:3.8
env:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- 5672:5672
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 21
uses: actions/setup-java@v1
with:
java-version: 21
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- uses: s4u/[email protected]
with:
servers: |
[{
"id": "interface21-snapshots",
"username": "${{ secrets.REPO_USERNAME }}",
"password": "${{ secrets.REPO_PASSWORD }}"
},
{
"id": "interface21-releases",
"username": "${{ secrets.REPO_USERNAME }}",
"password": "${{ secrets.REPO_PASSWORD }}"
},
{
"id": "sonatype-nexus-snapshots",
"username": "${{ secrets.OSS_USERNAME }}",
"password": "${{ secrets.OSS_PASSWORD }}"
}]
- name: Build
run: >
./mvnw deploy
-DsurefireArgs=-Dspring.profiles.active=ASYNCHRONOUS,TEST
-Dspring.rabbitmq.host=localhost
-Dci.buildNumber=$GITHUB_RUN_NUMBER
-U -B $MAVEN_OPTS