Skip to content

[maven-release-plugin] prepare for next development iteration #855

[maven-release-plugin] prepare for next development iteration

[maven-release-plugin] prepare for next development iteration #855

Workflow file for this run

name: ci
on:
push:
branches:
- "main"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Java 25
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 25
- name: Set up Maven
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 25
cache: maven
- name: Restore Maven cache
uses: skjolber/maven-cache-github-action@v3.1.1
with:
step: restore
- name: Build JAR
run: |
mvn clean install -DskipTests
mkdir -p compiled
cp artcoded/target/api-backend.jar compiled/
working-directory: .
- name: Save Maven cache
uses: skjolber/maven-cache-github-action@v3.1.1
with:
step: save
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64
file: Dockerfile.github
context: .
tags: nbittich/api-backend:latest
cache-from: type=registry,ref=nbittich/api-backend:buildcache
cache-to: type=registry,ref=nbittich/api-backend:buildcache,mode=max