Bump org.apache.maven.plugins:maven-assembly-plugin from 3.6.0 to 3.7… #107
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
# Publish a docker image on each commit to main | |
name: Publish a Snapshot | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
snapshot: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: 'Build and push to dockerhub' | |
run: ./mvnw -B -ntp -Pjib-multi-arch -Djib.to.tags="latest" package jib:build --file pom.xml | |
- run: sha256sum target/*with-deps.jar | |
- run: md5sum target/*with-deps.jar | |
- name: 'Upload artifact' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: planetiler-build | |
path: target/*with-deps.jar |