Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/.test-bake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ jobs:
with:
artifact-name: bake-output
artifact-upload: true
artifact-retention-days: 1
context: test
output: local
sbom: true
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/.test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ jobs:
with:
artifact-name: build-output
artifact-upload: true
artifact-retention-days: 1
file: test/hello.Dockerfile
output: local
platforms: linux/amd64,linux/arm64
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/bake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ on:
description: "Upload build output GitHub artifact (for local output)"
required: false
default: false
artifact-retention-days:
type: number
description: "Duration after which artifact will expire in days. 0 means using default retention."
required: false
default: 0
cache:
type: boolean
description: "Enable cache to GitHub Actions cache backend"
Expand Down Expand Up @@ -1089,6 +1094,7 @@ jobs:
name: ${{ inputs.artifact-name }}${{ steps.prepare.outputs.platform-pair-suffix || '0' }}
path: ${{ env.LOCAL_EXPORT_DIR }}
if-no-files-found: error
retention-days: ${{ inputs.artifact-retention-days }}
-
name: Set result output
id: result
Expand Down Expand Up @@ -1277,6 +1283,7 @@ jobs:
name: ${{ inputs.artifact-name }}
pattern: ${{ inputs.artifact-name }}*
delete-merged: true
retention-days: ${{ inputs.artifact-retention-days }}
-
name: Set outputs
id: set
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ on:
description: "Upload build output GitHub artifact (for local output)"
required: false
default: false
artifact-retention-days:
type: number
description: "Duration after which artifact will expire in days. 0 means using default retention."
required: false
default: 0
annotations:
type: string
description: "List of annotations to set to the image (for image output)"
Expand Down Expand Up @@ -944,6 +949,7 @@ jobs:
name: ${{ inputs.artifact-name }}${{ steps.prepare.outputs.platform-pair-suffix || '0' }}
path: ${{ env.LOCAL_EXPORT_DIR }}
if-no-files-found: error
retention-days: ${{ inputs.artifact-retention-days }}
-
name: Set result output
id: result
Expand Down Expand Up @@ -1133,6 +1139,7 @@ jobs:
name: ${{ inputs.artifact-name }}
pattern: ${{ inputs.artifact-name }}*
delete-merged: true
retention-days: ${{ inputs.artifact-retention-days }}
-
name: Set outputs
id: set
Expand Down
Loading
Loading