build(deps): bump sorenlouv/backport-github-action from 10.2.0 to 11.0.0 #49
Workflow file for this run
This file contains hidden or 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: "geowebcache" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| pull_request: | |
| jobs: | |
| build: | |
| if: "!startsWith(github.event.head_commit.message, '[skip ci] ')" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: "Checking out" | |
| uses: actions/checkout@v6 | |
| - name: "Setting up Java" | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| cache: 'maven' | |
| - name: "Installing & checking formatting" | |
| run: mvn --no-transfer-progress -B -Dfmt.action=validate install -Dadditionalparam=-Xdoclint:none -DskipTests | |
| - name: "Running tests" | |
| run: mvn --no-transfer-progress clean verify -Dfmt.skip=true -Dadditionalparam=-Xdoclint:none | |
| - name: Getting image tag | |
| if: github.repository == 'georchestra/geowebcache' && github.actor != 'dependabot[bot]' | |
| id: version | |
| run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT | |
| - name: "Building docker image" | |
| if: github.repository == 'georchestra/geowebcache' && github.actor != 'dependabot[bot]' | |
| run: mvn --no-transfer-progress clean package docker:build -Pdocker,log4j-logstash,sentry-log4j -DdockerImageName=georchestra/geowebcache:${{ steps.version.outputs.VERSION }} -DskipTests | |
| - name: "Logging in docker.io" | |
| if: github.repository == 'georchestra/geowebcache' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' | |
| uses: azure/docker-login@v2 | |
| with: | |
| username: '${{ secrets.DOCKER_HUB_USERNAME }}' | |
| password: '${{ secrets.DOCKER_HUB_PASSWORD }}' | |
| - name: "Pushing latest to docker.io" | |
| if: github.ref == 'refs/heads/main' && github.repository == 'georchestra/geowebcache' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' | |
| run: | | |
| docker tag georchestra/geowebcache:${{ steps.version.outputs.VERSION }} georchestra/geowebcache:latest | |
| docker push georchestra/geowebcache:latest | |
| - name: "Pushing release branch or tag to docker.io" | |
| if: (endsWith(github.ref, '.x') || contains(github.ref, 'refs/tags/')) && github.repository == 'georchestra/geowebcache' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' | |
| run: | | |
| docker push georchestra/geowebcache:${{ steps.version.outputs.VERSION }} | |
| - name: "Remove SNAPSHOT jars from repository" | |
| if: github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' | |
| run: | | |
| find .m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} | |
| - name: "Update Docker Hub Description" | |
| if: github.ref == 'refs/heads/main' && github.repository == 'georchestra/geowebcache' && github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' | |
| uses: peter-evans/dockerhub-description@v5 | |
| with: | |
| username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
| password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
| repository: georchestra/geowebcache | |
| readme-filepath: ./DOCKER_HUB.md | |
| short-description: 'Geowebcache module for the geOrchestra SDI' | |