Bump actions/checkout from 5.0.0 to 6.0.0 #321
Workflow file for this run
This file contains hidden or 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
| # This is a basic workflow to help you get started with Actions | |
| name: Build Docker Images CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build_temurin: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| baseimage: ["azurelinux", "distroless"] | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Build the image | |
| run: | | |
| docker build \ | |
| -t mcr.microsoft.com/openjdk/jdk:8-${{ matrix.baseimage }} \ | |
| -f ./docker/${{ matrix.baseimage }}/Dockerfile.temurin-8-jdk \ | |
| ./docker/${{ matrix.baseimage }}/ | |
| - name: Validate the image | |
| run: | | |
| bash ./scripts/validate-image.sh \ | |
| -s ${{ matrix.baseimage }} temurin 8 | |
| build_msopenjdk: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| jdkversion: [11, 17, 21, 25] # Only build LTS releases | |
| baseimage: ["azurelinux", "ubuntu", "distroless"] | |
| steps: | |
| - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 | |
| - name: Build the image | |
| run: | | |
| docker build \ | |
| -t mcr.microsoft.com/openjdk/jdk:${{ matrix.jdkversion }}-${{ matrix.baseimage }} \ | |
| -f ./docker/${{ matrix.baseimage }}/Dockerfile.msopenjdk-${{ matrix.jdkversion }}-jdk \ | |
| ./docker/${{ matrix.baseimage }}/ | |
| - name: Validate the image | |
| run: | | |
| bash ./scripts/validate-image.sh \ | |
| -s ${{ matrix.baseimage }} msopenjdk ${{ matrix.jdkversion }} |