GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docker-java-base/.github/workflows/pr-build.yml at main · hypertrace/docker-java-base

Expand file tree

/

pr-build.yml

Copy path
View runs
More file actions
More file actions

Latest commit

 

History

History
History
57 lines (50 loc) · 1.78 KB
/

pr-build.yml

Copy path

File metadata and controls

57 lines (50 loc) · 1.78 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: build and validate
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
java-major-version: [11, 21]
platform: [linux/amd64, linux/arm64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_READ_USER }}
password: ${{ secrets.DOCKERHUB_READ_TOKEN }}
- name: Read Java Version
shell: bash
id: versions
run: |
ZULU_JDK_VERSION=$(cat java-${{ matrix.java-major-version}}/java.version | tr -d "\n")
echo ZULU_JDK_VERSION=${ZULU_JDK_VERSION} >> $GITHUB_OUTPUT
BASE_IMAGE=$(cat java-${{ matrix.java-major-version}}/base.image | tr -d "\n")
echo BASE_IMAGE=${BASE_IMAGE} >> $GITHUB_OUTPUT
- name: Build java-${{ matrix.java-major-version}}
uses: docker/build-push-action@v5
with:
context: java-${{ matrix.java-major-version}}
platforms: ${{ matrix.platform }}
build-args: |
JAVA_VERSION=${{ steps.versions.outputs.ZULU_JDK_VERSION }}
BASE_IMAGE=${{ steps.versions.outputs.BASE_IMAGE }}
tags: hypertrace/java-build:${{ matrix.java-major-version}}
load: true
- name: Scan java-${{ matrix.java-major-version}} image
uses: hypertrace/github-actions/trivy-image-scan@main
with:
image: hypertrace/java-build
tag: ${{ matrix.java-major-version}}
category: java-${{ matrix.java-major-version}}
output-mode: github
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.