From 04d8281a0b07b1122375bef029eb31664c26aeec Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 4 Mar 2026 14:22:21 +0100 Subject: [PATCH] remove deprecated envs Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/ci.yml | 24 ------------------------ src/main.ts | 13 ++----------- 2 files changed, 2 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd21c99..ff13308 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -555,30 +555,6 @@ jobs: env: DOCKER_BUILD_SUMMARY: false - summary-disable-deprecated: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v6 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - version: ${{ inputs.buildx-version || env.BUILDX_VERSION }} - driver-opts: | - image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }} - - - name: Build - uses: ./ - with: - source: . - files: | - ./test/config.hcl - targets: app - env: - DOCKER_BUILD_NO_SUMMARY: true - summary-not-supported: runs-on: ubuntu-latest steps: diff --git a/src/main.ts b/src/main.ts index f8035d6..a20b6f6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -308,10 +308,7 @@ function buildChecksAnnotationsEnabled(): boolean { } function buildSummaryEnabled(): boolean { - if (process.env.DOCKER_BUILD_NO_SUMMARY) { - core.warning('DOCKER_BUILD_NO_SUMMARY is deprecated. Set DOCKER_BUILD_SUMMARY to false instead.'); - return !Util.parseBool(process.env.DOCKER_BUILD_NO_SUMMARY); - } else if (process.env.DOCKER_BUILD_SUMMARY) { + if (process.env.DOCKER_BUILD_SUMMARY) { return Util.parseBool(process.env.DOCKER_BUILD_SUMMARY); } return true; @@ -325,13 +322,7 @@ function buildRecordUploadEnabled(): boolean { } function buildRecordRetentionDays(): number | undefined { - let val: string | undefined; - if (process.env.DOCKER_BUILD_EXPORT_RETENTION_DAYS) { - core.warning('DOCKER_BUILD_EXPORT_RETENTION_DAYS is deprecated. Use DOCKER_BUILD_RECORD_RETENTION_DAYS instead.'); - val = process.env.DOCKER_BUILD_EXPORT_RETENTION_DAYS; - } else if (process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS) { - val = process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS; - } + const val = process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS; if (val) { const res = parseInt(val); if (isNaN(res)) {