diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 076746a9c..aa11ab352 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,9 @@ jobs: CI: runs-on: ubuntu-latest steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 + - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: "3.x" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1ed6eebb1..58a4cf5b4 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -41,11 +41,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6 + uses: github/codeql-action/init@3ab4101902695724f9365a384f86c1074d94e18c # v3.24.7 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -55,7 +55,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6 + uses: github/codeql-action/autobuild@3ab4101902695724f9365a384f86c1074d94e18c # v3.24.7 # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -68,6 +68,6 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6 + uses: github/codeql-action/analyze@3ab4101902695724f9365a384f86c1074d94e18c # v3.24.7 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index 168f313bd..a2bc36b52 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -11,7 +11,7 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Run Sanity Check Script run: "bash sanity.sh" diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index 76b1b06cb..94466aae1 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -31,12 +31,12 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 with: persist-credentials: false - name: "Run analysis" - uses: ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d # v2.0.6 + uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 with: results_file: results.sarif results_format: sarif @@ -58,7 +58,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 with: name: SARIF file path: results.sarif @@ -66,6 +66,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@928ff8c822d966a999092a6a35e32177899afb7c # v2.24.6 + uses: github/codeql-action/upload-sarif@3ab4101902695724f9365a384f86c1074d94e18c # v3.24.7 with: sarif_file: results.sarif diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index a79f8fc8e..60df8aa3a 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -18,8 +18,8 @@ jobs: outputs: strategy: ${{ steps.generate-jobs.outputs.strategy }} steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - - uses: docker-library/bashbrew@7e160dca3123caecf32c33ba31821dd2aa3716cd # v0.1.8 + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + - uses: docker-library/bashbrew@d23b94357ef16d21a8d14578d5338152e4460c91 # v0.1.12 - id: generate-jobs name: Generate Jobs run: | @@ -34,7 +34,7 @@ jobs: name: ${{ matrix.name }} runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - name: Prepare Environment run: ${{ matrix.runs.prepare }} - name: Pull Dependencies diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index 851bf2076..8dbfdc2de 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -13,11 +13,11 @@ jobs: if: startsWith(github.repository, 'adoptium/') runs-on: ubuntu-latest steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 with: persist-credentials: false - - uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1 + - uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0 with: python-version: "3.x" diff --git a/21/jdk/debian/sid-slim/Dockerfile b/21/jdk/debian/sid-slim/Dockerfile index 7aa0e5277..009a97f84 100644 --- a/21/jdk/debian/sid-slim/Dockerfile +++ b/21/jdk/debian/sid-slim/Dockerfile @@ -52,10 +52,6 @@ ENV JAVA_VERSION jdk-21.0.2+13 RUN set -eux; \ ARCH="$(dpkg --print-architecture)"; \ case "${ARCH}" in \ - amd64|i386:x86-64) \ - ESUM='454bebb2c9fe48d981341461ffb6bf1017c7b7c6e15c6b0c29b959194ba3aaa5'; \ - BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_x64_linux_hotspot_21.0.2_13.tar.gz'; \ - ;; \ riscv64) \ ESUM='791a37ddb040e1a02bbfc61abfbc7e7321431a28054c9ac59ba1738fd5320b02'; \ BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_riscv64_linux_hotspot_21.0.2_13.tar.gz'; \ diff --git a/21/jre/debian/sid-slim/Dockerfile b/21/jre/debian/sid-slim/Dockerfile index f133a3463..0cd05fe8c 100644 --- a/21/jre/debian/sid-slim/Dockerfile +++ b/21/jre/debian/sid-slim/Dockerfile @@ -49,10 +49,6 @@ ENV JAVA_VERSION jdk-21.0.2+13 RUN set -eux; \ ARCH="$(dpkg --print-architecture)"; \ case "${ARCH}" in \ - amd64|i386:x86-64) \ - ESUM='51141204fe01a9f9dd74eab621d5eca7511eac67315c9975dbde5f2625bdca55'; \ - BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jre_x64_linux_hotspot_21.0.2_13.tar.gz'; \ - ;; \ riscv64) \ ESUM='efdeca282553229aa20d909ab9f5fb14eee52b56067a5598e6c649ef5f99a63d'; \ BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jre_riscv64_linux_hotspot_21.0.2_13.tar.gz'; \ diff --git a/config/hotspot.yml b/config/hotspot.yml index 27e139d2b..269ace8af 100644 --- a/config/hotspot.yml +++ b/config/hotspot.yml @@ -31,9 +31,8 @@ configurations: # sid -- Debian x.y Unstable - directory: debian/sid-slim - architectures: [riscv64, x64] + architectures: [riscv64] image: debian:sid-slim - starts_from: 21 os: debian - directory: centos diff --git a/dockerhub_doc_config_update.sh b/dockerhub_doc_config_update.sh index c7d7a7a62..364b3ff18 100755 --- a/dockerhub_doc_config_update.sh +++ b/dockerhub_doc_config_update.sh @@ -55,6 +55,7 @@ print_official_header() { print_official_text " Stewart Addison (@sxa)" print_official_text "GitRepo: https://github.com/adoptium/containers.git" print_official_text "GitFetch: refs/heads/main" + print_official_text "Builder: buildkit" } function generate_official_image_tags() { @@ -133,10 +134,6 @@ function generate_official_image_arches() { # arm is arm32v7 and aarch64 is arm64v8 for docker builds # shellcheck disable=SC2046,SC2005,SC1003,SC2086,SC2063 arches=$(echo $(grep ') \\' ${file} | sed 's/\(powerpc:common64\)//;s/\(i386:x86-64\)//;s/\(x86_64\)//;s/\(arm64\)//;s/\(armhf\)//;s/\(s390:64-bit\)//;s/\(arm\)/arm32v7/;s/\(ppc64el\)/ppc64le/;s/\(aarch64\)/arm64v8/;' | grep -v "*" | sed 's/) \\//g; s/|//g' | sort) | sed 's/ /, /g') - # if distro contains debian only ship riscv64 - if [[ "${distro}" == debian* ]]; then - arches="riscv64" - fi fi } @@ -178,6 +175,7 @@ function print_official_image_file() { echo "GitCommit: ${commit}" echo "Directory: ${dfdir}" if [ $os == "windows" ]; then + echo "Builder: classic" echo "Constraints: ${constraints}" fi echo "" diff --git a/generate_dockerfiles.py b/generate_dockerfiles.py index 93e97806a..c6a9fc609 100644 --- a/generate_dockerfiles.py +++ b/generate_dockerfiles.py @@ -55,7 +55,6 @@ def archHelper(arch, os_family): os_name = configuration["os"] base_image = configuration["image"] deprecated = configuration.get("deprecated", None) - starts_from = configuration.get("starts_from", 0) versions = configuration.get( "versions", config["supported_distributions"]["Versions"] ) @@ -69,9 +68,6 @@ def archHelper(arch, os_family): # if deprecated is set and version is greater than or equal to deprecated, skip if deprecated and version >= deprecated: continue - # if starts_from is set and version is less than starts_from, skip - if version < starts_from: - continue print("Generating Dockerfiles for", base_image, "-", version) for image_type in ["jdk", "jre"]: output_directory = os.path.join(str(version), image_type, directory)