When tags matching the pattern 'v[0-9]+' are pushed a new image is built and published. It is tagged with the number and in addition "latest".
18 lines
417 B
YAML
18 lines
417 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- '**' # do not run on tag pushes, handled by separate workflow
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: 17
|
|
cache: maven
|
|
- name: Build with Maven
|
|
run: ./mvnw clean verify --batch-mode
|