Update docker workflows #9
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: spring server | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
paths: | |
- 'docker/spring-remoting/resources/server/**' | |
- '.github/workflows/spring-server.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ${{ github.event.repository.name }} | |
uses: actions/checkout@v4 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 8 | |
cache: maven | |
cache-dependency-path: docker/spring-remoting/resources/server/pom.xml | |
- name: Build with Maven | |
run: cd docker/spring-remoting/resources/server/ && mvn -B package --file pom.xml | |
- name: Archive generated JAR file | |
uses: actions/upload-artifact@v4 | |
with: | |
name: spring-server | |
path: docker/spring-remoting/resources/server/target/*.jar |