fix(deps): update dependency org.springdoc:springdoc-openapi-starter-webmvc-ui to v2.7.0 - autoclosed #447
Workflow file for this run
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
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' | |
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@v5 | |
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@7ca345011ac4304463197fac0e56eab1bc7e6af0 | |
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 }} |