gwc - handles workspace-based paths (#380) #7
Workflow file for this run
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
# Builds and pushes docker images on main and tags | |
name: Build on any branch | |
on: | |
push: | |
branches: | |
- '**' | |
- "!main" | |
paths: | |
- "Makefile" | |
- "pom.xml" | |
- ".github/workflows/build.yaml" | |
- "src/**" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'maven' | |
- name: Validate source code formatting | |
run: make lint | |
- name: Build and test | |
run: | | |
make install test | |
- name: Build docker images | |
run: | | |
make build-image | |
- name: Remove project jars from cached repository | |
run: | | |
rm -rf ~/.m2/repository/org/geoserver | |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} |