Skip to content

chore(deps): update dependency io.fabric8:docker-maven-plugin to v0.44.0 #483

chore(deps): update dependency io.fabric8:docker-maven-plugin to v0.44.0

chore(deps): update dependency io.fabric8:docker-maven-plugin to v0.44.0 #483

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: maven-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up JDK 17
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
server-id: github.pospai.snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache local Maven repository
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('launcher/src/main/features/**/*.json') }}
restore-keys: |
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B verify -P container,ci --file pom.xml
env:
MAVEN_USERNAME: rombert
MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
- name: Save container logs
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4
if: always()
with:
name: container-logs
path: |
container/target/docker-pospai.log
- name: Run Trivy
uses: aquasecurity/trivy-action@d43c1f16c00cfd3978dde6c07f4bbcf9eb6993ca # 0.16.1
with:
image-ref: 'rombert/pospai:latest'
format: 'table'
# exit-code: '1' TODO - enable once we get get no errors
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
- name: Login to DockerHub
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push container image to DockerHub
if: ${{ github.ref == 'refs/heads/master' }}
run: mvn -f container/pom.xml docker:push