Skip to content

fix(deps): update dependency com.github.loki4j:loki-logback-appender … #67

fix(deps): update dependency com.github.loki4j:loki-logback-appender …

fix(deps): update dependency com.github.loki4j:loki-logback-appender … #67

name: boot-strategy-plugin-native
on:
push:
paths:
- "boot-strategy-plugin/**"
branches: [main]
pull_request:
paths:
- "boot-strategy-plugin/**"
types:
- opened
- synchronize
- reopened
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
VERSION: latest
jobs:
build:
name: Run Unit & Integration Tests
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
defaults:
run:
working-directory: boot-strategy-plugin
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: graalvm/setup-graalvm@v1
with:
distribution: 'graalvm'
java-version: '21'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'gradle'
native-image-job-reports: 'true'
- name: Printing versions
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Start up infra via Docker Compose
run: |
docker compose up -d
sleep 5
docker ps -a
- name: Build and analyze
run: ./gradlew clean build --info
- if: ${{ github.ref == 'refs/heads/main' }}
name: Build container image
run: ./gradlew bootBuildImage --imageName ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/boot-strategy-plugin:${{ env.VERSION }}
- if: ${{ github.ref == 'refs/heads/main' }}
name: OCI image vulnerability scanning
uses: anchore/scan-action@v3
id: scan
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/boot-strategy-plugin:${{ env.VERSION }}
fail-build: false
severity-cutoff: high
- if: ${{ github.ref == 'refs/heads/main' }}
name: Log in to the Container registry
uses: docker/login-action@b4bedf8053341df3b5a9f9e0f2cf4e79e27360c6
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- if: ${{ github.ref == 'refs/heads/main' }}
name: Publish container image
run: docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/boot-strategy-plugin:${{ env.VERSION }}