Add mariner 21 parameter to AzDO Pipeline (#82) #4
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
# 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: | |
jobs: | |
build_temurin: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
baseimage: ["mariner", "distroless"] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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: Test the image | |
run: | | |
bash validate-image.sh -s ${{ matrix.baseimage }} temurin 8 | |
build_msopenjdk: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
jdkversion: [11, 17, 21] # Only build LTS releases | |
baseimage: ["mariner", "ubuntu", "distroless"] | |
steps: | |
- uses: actions/checkout@v4 | |
- 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: Test the image | |
run: | | |
bash validate-image.sh -s ${{ matrix.baseimage }} msopenjdk ${{ matrix.jdkversion }} |