Skip to content

Commit 04d8281

Browse files
committed
remove deprecated envs
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 8fdd4fb commit 04d8281

File tree

2 files changed

+2
-35
lines changed

2 files changed

+2
-35
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -555,30 +555,6 @@ jobs:
555555
env:
556556
DOCKER_BUILD_SUMMARY: false
557557

558-
summary-disable-deprecated:
559-
runs-on: ubuntu-latest
560-
steps:
561-
-
562-
name: Checkout
563-
uses: actions/checkout@v6
564-
-
565-
name: Set up Docker Buildx
566-
uses: docker/setup-buildx-action@v3
567-
with:
568-
version: ${{ inputs.buildx-version || env.BUILDX_VERSION }}
569-
driver-opts: |
570-
image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }}
571-
-
572-
name: Build
573-
uses: ./
574-
with:
575-
source: .
576-
files: |
577-
./test/config.hcl
578-
targets: app
579-
env:
580-
DOCKER_BUILD_NO_SUMMARY: true
581-
582558
summary-not-supported:
583559
runs-on: ubuntu-latest
584560
steps:

src/main.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,7 @@ function buildChecksAnnotationsEnabled(): boolean {
308308
}
309309

310310
function buildSummaryEnabled(): boolean {
311-
if (process.env.DOCKER_BUILD_NO_SUMMARY) {
312-
core.warning('DOCKER_BUILD_NO_SUMMARY is deprecated. Set DOCKER_BUILD_SUMMARY to false instead.');
313-
return !Util.parseBool(process.env.DOCKER_BUILD_NO_SUMMARY);
314-
} else if (process.env.DOCKER_BUILD_SUMMARY) {
311+
if (process.env.DOCKER_BUILD_SUMMARY) {
315312
return Util.parseBool(process.env.DOCKER_BUILD_SUMMARY);
316313
}
317314
return true;
@@ -325,13 +322,7 @@ function buildRecordUploadEnabled(): boolean {
325322
}
326323

327324
function buildRecordRetentionDays(): number | undefined {
328-
let val: string | undefined;
329-
if (process.env.DOCKER_BUILD_EXPORT_RETENTION_DAYS) {
330-
core.warning('DOCKER_BUILD_EXPORT_RETENTION_DAYS is deprecated. Use DOCKER_BUILD_RECORD_RETENTION_DAYS instead.');
331-
val = process.env.DOCKER_BUILD_EXPORT_RETENTION_DAYS;
332-
} else if (process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS) {
333-
val = process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;
334-
}
325+
const val = process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;
335326
if (val) {
336327
const res = parseInt(val);
337328
if (isNaN(res)) {

0 commit comments

Comments
 (0)